Free Time Duration Calculator

Use our free time duration calculator to instantly find the exact time difference between two times or two dates. Subtract breaks, handle overnight shifts and see the result in hours, minutes and decimal hours.

What is time duration?

Time duration is the elapsed time between a start time and an end time.

End timeStart timeBreakDuration

Example: 9:15 AM to 6:00 PM, minus a 30-minute break = 8 hours 15 minutes.

Jump to:Formula and examplesConversion tablesFAQ

Time format
Start time
End time
min
Try an example
Total duration after break

8h 15m

Decimal hours
8.25
Total minutes
495
Before break
8h 45m
Break
30m

9:15 AM to 6:00 PM is 8h 45m (same day). Minus a 30-minute break, that leaves 8h 15m.

Automate your work hour calculations! Try Desklog for Free →

How to Use the Time Duration Calculator

Get accurate elapsed time without converting hours by hand. The calculator also accounts for shifts crossing midnight.

  1. 1

    Choose your format

    Select your preferred time format: 12-hour or 24-hour.

  2. 2

    Enter the start time

    Enter the start time in hours and minutes. Seconds are optional.

  3. 3

    Enter the end time

    Enter the end time in hours and minutes, and any unpaid break in minutes.

  4. 4

    Get your result

    Click Calculate to find the total time difference. Click Reset to start again.

How to Calculate Time Duration

A quick formula and a worked example help you verify the answer and understand how a time difference is measured. The same subtraction works for shifts, exams, meetings, travel and billable sessions.

Time duration formula

Subtract the start time from the end time. For a shift that continues into the next day, add 24 hours to the earlier end time before subtracting.

Net time duration = End time − Start time − Unpaid break

If the end time is earlier than the start time, the calculator assumes it is on the following day. Matching start and end times represent a zero-hour duration.

Worked example: 9:15 AM to 6:00 PM

An employee starts at 9:15 AM, finishes at 6:00 PM and takes a 30-minute unpaid break.

Elapsed time
8h 45m
Unpaid break
−30m
Net duration
8h 15m

Decimal hours: 8 + (15 ÷ 60) = 8.25 hours. Decimal hours are useful for timesheets, billing and estimated pay.

What to check before using your result

Avoid common errors

AM, PM & midnight

12:00 AM means midnight; 12:00 PM means noon. Mixing 12-hour and 24-hour values can shift a result by 12 hours.

Different time zones

Convert both clock times to the same time zone first. The calculator does not adjust for time zones or daylight saving changes.

Dates longer than one day

Use the Two dates tab for ranges longer than one day. The Two times tab compares clock times within a single day or across one midnight.

Elapsed time and paid hours are not always identical: subtract unpaid breaks, and apply any rounding or overtime rules from your own workplace or contract.

Weekly Time Duration Calculator

The free Weekly Time Duration Calculator quickly calculates total weekly hours and overtime from daily clock-in, clock-out and break times, helping you save time, reduce errors, and simplify payroll and attendance tracking.

  1. Enter clock-in time
  2. Enter clock-out time
  3. Add break minutes
  4. Repeat for working days
  5. Click Calculate
  6. View total hours & overtime

Leave a day blank to skip it. Overnight shifts are supported.

DayClock-inClock-outBreak (min)Total
Monday8h 00m
Tuesday8h 00m
Wednesday8h 00m
Thursday8h 00m
Friday8h 00m
Saturday—
Sunday—
hrs / week
Total weekly hours
40h 00m
Decimal hours
40.00
Overtime hours
0h 00m
Desklog time tracking

Automate your work hour calculations!

Stop relying on spreadsheets and typing clock-in times by hand. Desklog tracks every work hour precisely, so your weekly totals are already there.

  • Automatic time tracking
  • Weekly hours at a glance
  • No spreadsheets

Pay Calculator

The free Pay Calculator helps you quickly calculate total pay from regular hours, overtime hours, hourly rate and overtime rate. It automates wage calculations, reduces payroll errors and saves time when preparing salary and payment reports.

  1. Enter total work hours
  2. Enter overtime hours
  3. Enter pay rate per hour
  4. Select overtime rate
  5. Click Calculate Pay

Including overtime

Hours over your regular limit

$/hr

Overtime rate = $30.00/hr

Estimated gross earnings
Regular hours
40.00h
Regular pay
$800.00
Overtime pay
$105.00
Gross pay$905.00

No taxes or deductions included. Regular hours = total hours − overtime hours, so overtime is never counted twice.

Time Difference Examples & Conversions

Practical examples for work shifts, meetings and overnight schedules, plus a quick minutes-to-decimal reference for timesheets.

Time difference examples

Break deductions are shown separately.

Start timeEnd timeUnpaid breakTime duration
9:00 AM5:30 PM30 min8h 00m
9:15 AM6:00 PM30 min8h 15m
10:00 PM6:00 AM (next day)30 min7h 30m
11:30 AM2:15 PM0 min2h 45m
8:45 AM12:10 PM15 min3h 10m

Minutes to decimal hours

Divide minutes by 60, then add any full hours. Values are rounded to two decimals.

MinutesHours & minutesDecimal hours
5 minutes0h 05m0.08
15 minutes0h 15m0.25
20 minutes0h 20m0.33
30 minutes0h 30m0.50
45 minutes0h 45m0.75
60 minutes1h 00m1.00
90 minutes1h 30m1.50

How to add or subtract time durations

Add hours and minutes separately. Every 60 minutes becomes 1 hour; when subtracting, borrow 60 minutes if needed.

Add durations1h 45m + 2h 30m = 4h 15m
Subtract durations3h 20m − 1h 45m = 1h 35m

Time units at a glance

1 hour = 60 minutes = 3,600 seconds. 1 minute = 60 seconds. 7h 30m is 7.50 decimal hours, not 7.30.

What Can You Use a Time Duration Calculator For?

The same elapsed-time calculation works for shifts, study, travel and billable sessions, provided both times use the same time zone.

Work shifts & breaks

Find net work hours, even when a night shift ends the following morning.

10:00 PM–6:00 AM − 30m break = 7h 30m

Exams & study sessions

Check an exam's length or the time spent on a focused study block.

10:30 AM–1:30 PM = 3h 00m

Meetings & travel

Measure meeting length, layovers or journey segments with clear start and end times.

2:20 PM–4:05 PM = 1h 45m

Freelance billing

Convert tracked sessions into decimal hours before applying a contractual rate.

4h 20m = 4.33 decimal hours (rounded)

Frequently Asked Questions

Everything you need to know about the Time Duration Calculator, the Weekly Time Duration Calculator and the Pay Calculator.

Time duration calculator

What is a Time Duration Calculator?
A time duration calculator finds the elapsed time between a start time and an end time, in hours, minutes and optionally seconds. It can also subtract an unpaid break and show the result as decimal hours, which is the format timesheets and payroll use. For example, 9:15 AM to 6:00 PM with a 30-minute break is 8 hours 15 minutes.
Can I choose between 12-hour and 24-hour formats?
Yes. Use the time format switch at the top of the calculator. In 12-hour mode you also choose AM or PM; in 24-hour mode you enter hours from 0 to 23. Valid times you have already entered are converted when you switch.
How do I calculate the time difference?
Subtract the start time from the end time. For example, 9:15 AM to 6:00 PM is 8 hours 45 minutes. Enter both times in the calculator, click Calculate, and it shows the answer along with total minutes and decimal hours.
How do I calculate time across midnight?
If the end time is earlier than the start time, treat it as the next day by adding 24 hours before you subtract. For example, 10:00 PM to 6:00 AM is 8 hours. The calculator does this automatically.
How do I convert hours and minutes to decimal hours?
Divide the minutes by 60 and add the whole hours. 8 hours 15 minutes is 8 + 15 ÷ 60 = 8.25 hours. Note that 7 hours 30 minutes is 7.50 decimal hours, not 7.30.
Can I subtract a break?
Yes. Enter the unpaid break in minutes and the calculator deducts it from the elapsed time to show the net duration. The break can't be longer than the time between start and end.
Can I find the time between two dates?
Yes. Open the Two dates tab, enter a start and end date with times, and you get the result in days, hours and minutes, plus total hours and total minutes.
How do I add several durations together?
Add the hours and the minutes separately, then turn every 60 minutes into 1 hour. For example, 1 hour 45 minutes plus 2 hours 30 minutes is 3 hours 75 minutes, which is 4 hours 15 minutes.
Does it handle time zones and daylight saving?
No. The calculator compares clock times as entered. If your two times are in different time zones, convert them to the same zone first. Dates that cross a daylight saving change can differ by an hour from real elapsed time.
Do I need to download any software to use these calculators?
No. All the calculators on this page are web-based and work directly in your browser, with no installation and no signup.

Weekly hours

What is a Weekly Time Duration Calculator?
A weekly time duration calculator totals your work hours across several days. Enter clock-in, clock-out and break times for each day, and it shows total weekly hours, decimal hours and overtime above the threshold you choose, which is 40 hours by default.
Does the Weekly Time Calculator support different work hours each day?
Yes. Each day has its own clock-in, clock-out and break fields, so shifts can differ from day to day. Leave a day blank to skip it. Overnight shifts that end after midnight are supported.

Pay and overtime

What is a Pay Calculator?
A pay calculator turns hours worked into earnings. Enter total hours, overtime hours and your hourly rate, and it estimates regular pay, overtime pay and gross pay before taxes and deductions.
How does the Pay Calculator work?
Enter total work hours including overtime, your overtime hours, your hourly rate, and an overtime multiplier of 1x, 1.5x or 2x. Regular hours are total hours minus overtime, so overtime is never counted twice. For example, 43.5 hours with 3.5 overtime hours at $20 and 1.5x is 40 × $20 + 3.5 × $30 = $905.
Can the Pay Calculator calculate overtime pay?
Yes. It supports regular rate (1x), time-and-a-half (1.5x) and double time (2x). You can also pull your weekly hours and overtime straight from the weekly calculator with the Use weekly hours button.
Are the Time Duration, Weekly Time, and Pay Calculators free to use?
Yes. All the calculators are completely free, work online and need no signup.
Time Duration Calculator

Skip Manual Time Tracking!

Stop relying on spreadsheets. Track every work hour precisely with Desklog.