Skip to content
DEVELOGCALC

Time Duration Calculator

Find the hours and minutes between two times, including overnight shifts, minus any break.

Try:
min

Result

Duration: 8 hours 0 minutes

Duration

Decimal hours
8
Hours:minutes
8:00
Total minutes
480
Calculation steps
  1. 9:00 AM → 5:30 PM = 510 minutes
  2. Minus 30-minute break = 480 minutes
  3. 480 ÷ 60 = 8 h 0 min

Calculations run in your browser. Your inputs are not sent to our server.

Formula

  • Minutes = (End − Start) − Break
  • If End is earlier than Start, add 24 hours
  • Decimal hours = Minutes ÷ 60

How it works

Both times are converted to minutes after midnight. If the end time is earlier than the start time, the shift is assumed to cross midnight and 24 hours are added. The break is subtracted, and the total is shown as hours and minutes and as decimal hours.

Payroll systems usually want decimal hours: 7 hours 45 minutes is 7.75 hours, not 7.45.

Worked examples

Day shift with lunch

9:00 AM to 5:30 PM with a 30-minute unpaid lunch is 8 hours.

Start time
09:00
End time
17:30
Unpaid break
30 min
Duration
8 hours 0 minutes

Overnight shift

10:00 PM to 6:15 AM crosses midnight: 8 h 15 min minus a 45-minute break.

Start time
22:00
End time
06:15
Unpaid break
45 min
Duration
7 hours 30 minutes

Minutes to decimal hours

  • 15 minutes = 0.25 hours
  • 20 minutes = 0.33 hours
  • 30 minutes = 0.5 hours
  • 45 minutes = 0.75 hours

Limits

Times are entered on a 24-hour clock in your browser’s time picker. Spans longer than 24 hours and daylight-saving changes are not handled; for multi-day spans use the days between dates calculator.

Weekly timesheets

Calculate each day separately and add the decimal hours. Adding hours and minutes directly is error-prone: 7:45 + 8:30 is 16 hours 15 minutes, which is 16.25 decimal hours.

Last reviewed: