Skip to main content
Calculator WorldProFree online calculators

Time Duration Calculator

Work out how long something lasted, such as a shift, a flight or a project session. Overnight times are handled automatically, and you can subtract breaks to get paid hours in decimal form.

Compare

Results update automatically as you type.

Result

Duration after breaks

8 hours, 0 minutes

Decimal hours
8
Total minutes
480
Total seconds
28,800
Days, hours, minutes
0d 8h 0m
Show calculation steps
  1. 09:00 → 17:30 = 510 minutes
  2. Minus 30 minutes of breaks = 480 minutes

How to use the Time Duration Calculator

  1. Choose two times, or two full dates and times for spans longer than a day.
  2. Enter the start and end. If the end time is earlier, it is treated as the next day.
  3. Optionally subtract breaks to get working time.

Formula

Duration = end − start (+24 h if end < start)
Decimal hours = minutes ÷ 60

Times are converted to minutes since midnight and subtracted. Decimal hours are what most payroll systems use: 7 h 30 min = 7.5 hours.

Worked example: 09:00 to 17:30 with a 30-minute break

  1. 17:30 − 09:00 = 8 h 30 min = 510 min
  2. 510 − 30 = 480 min
  3. 480 ÷ 60 = 8.00

8 hours (8.00 decimal hours).

Timesheets and pay

Multiply decimal hours by an hourly rate to estimate pay, or use the Payroll Calculator for overtime and deductions. To convert durations between units, try the Time Converter.

Assumptions & limitations

  • Calculations use clock time. A daylight-saving change between the times would shift real elapsed time by an hour.
  • Seconds are not included.

Frequently asked questions

How do I convert minutes to decimal hours?

Divide by 60. 45 minutes = 0.75 hours, 20 minutes ≈ 0.33 hours.

How do I calculate an overnight shift?

Just enter the times, for example 22:00 to 06:00. The calculator recognises that the end is the next day and returns 8 hours.

Can I calculate a duration across several days?

Yes. Switch to “Two dates and times” for multi-day spans.