One Calculator Logo One Calculator
Date & Time • Formulas shown

Time Duration Calculator

Quick Answer

Duration = end time − start time − breaks. Working 9:00 to 17:30 with a 30-minute unpaid break is 8 hours, or 8.00 in decimal hours. If the end time is earlier than the start time, the calculator treats it as the next day, which handles night shifts.

Result

Duration: 8 h 0 min (8.00 hours)

Total elapsed8 h 30 min
Break30 min
Decimal hours8
Total minutes480
Step-by-step calculation
  1. 09:00 to 17:30 = 8 h 30 min
  2. Minus 30 minutes break = 8 h 0 min
  3. Decimal hours = 480 ÷ 60 = 8

About the Time Duration Calculator

Enter a start time, an end time and any unpaid break, and the calculator gives the time worked in hours and minutes, in total minutes and as decimal hours. Decimal hours are what most payroll and invoicing systems expect: 7 hours 45 minutes is 7.75.

Overnight shifts are handled automatically. If you start at 22:00 and finish at 06:00, the end time is read as the next morning and the result is 8 hours. Use it for timesheets, shift lengths, study sessions or how long a task took.

How to Use the Time Duration Calculator

  1. Enter the start and end times.
  2. Enter any unpaid break in minutes.
  3. Read the duration and the decimal hours.

Formula and Method

Duration

minutes = end − start (+ 24 h if overnight) − break

Times converted to minutes after midnight.

Decimal hours

hours = minutes ÷ 60

45 minutes = 0.75 h; 20 minutes = 0.33 h.

Worked Example

A standard workday

Input: Start 09:00, end 17:30, break 30 min

  • 17:30 − 09:00 = 8 h 30 min = 510 min
  • 510 − 30 = 480 min
  • 480 ÷ 60 = 8.00 h

Result: 8 hours 0 minutes, 8.00 decimal hours.

Frequently Asked Questions

How do I calculate hours worked?

Subtract the start time from the end time, then subtract unpaid breaks. For 9:00 to 17:30 with a 30-minute break that is 8 hours.

How do I convert minutes to decimal hours?

Divide the minutes by 60. 15 minutes is 0.25, 30 is 0.5 and 45 is 0.75.

What about overnight shifts?

If the end time is earlier than the start time, it is assumed to be the next day. A 22:00 to 06:00 shift is 8 hours.

Can it add up a whole week?

Calculate each day, then add the decimal hours. Multiply the total by the hourly rate to estimate gross pay.

Related Calculators

All Date & Time Calculators →

Sources and Further Reading

Accuracy and Scope

Dates are treated as calendar dates in the Gregorian calendar without time zones. For legal deadlines, check how the relevant rules count days. See our full disclaimer.