IQRCalculator

Time Duration Calculator

Hours and minutes between a start and an end time, less any break, in clock form and in decimal hours.

Result

Duration8 hours 0 minutes08:30 → 17:15
Decimal hours
8
Total minutes
480
hh:mm
08:00
How it was calculated
  1. Time from start to end
    525 minutes
  2. Subtract the break
    525 − 45 = 480
  3. Convert to decimal hours
    480 ÷ 60 = 8

How to use it

Enter the start and end times on the 24-hour clock — 5:15 PM is 17:15 — and, if you like, a break in minutes to subtract. The result is shown in hours and minutes, as hh:mm, in total minutes and in decimal hours. If the times include seconds, they are counted too.

The calculation

duration = end − start (+ 24 hours if the end is earlier than the start) − break
decimal hours = total minutes ÷ 60times on the 24-hour clock; break in minutes

Worked examples

A day shift with lunch

Given: 08:30 to 17:15, 45-minute break

  • 08:30 to 17:15 is 8 h 45 min = 525 minutes
  • 525 − 45 = 480 minutes
  • 480 ÷ 60 = 8 hours, or 8 in decimal hours

A night shift across midnight

Given: 22:15 to 06:45, 30-minute break

The end time is earlier than the start time, so the shift is taken to run past midnight: 1 h 45 min before midnight plus 6 h 45 min after it makes 510 minutes. Less the break, 480 minutes = 8 hours 0 minutes.

Decimal hours for a timesheet

Given: 09:00 to 17:20, 30-minute break

500 − 30 = 470 minutes = 7 hours 50 minutes. In decimal form: 470 ÷ 60 = 7.8333 hours. At an hourly rate of 20, that is 156.67 — reading 7:50 as 7.50 hours would give only 150.

MinutesDecimal hours
60.1
150.25
200.3333
300.5
400.6667
450.75
500.8333

Conventions and limits

  • Less than 24 hours only. The calculator works with times of day, not dates, so it cannot tell an 8-hour shift from a 32-hour one. Equal start and end times give 0, not 24 hours. For longer spans, count calendar days with the days between dates calculator.
  • Midnight is handled automatically: any end time earlier than the start time is read as falling on the next day.
  • Breaks are entered in minutes (decimals allowed) and cannot be longer than the time between start and end.
  • No time zones or daylight saving: a night shift during a clock change really lasts an hour more or less than the clock times suggest, so adjust for it yourself.
  • Decimal hours are shown to 4 decimal places. Payroll systems may round differently, for example to the nearest quarter hour, so check the rule your employer uses.

Questions

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add the result to the hours. 7 hours 50 minutes is 7 + 50 ÷ 60 = 7.8333 hours; 8 hours 15 minutes is 8.25 hours.

How do I enter PM times?

Use the 24-hour clock: add 12 to the hour for times from 1:00 PM to 11:59 PM, so 5:15 PM is 17:15. 12:30 PM is 12:30, and 12:30 AM is 00:30.

Can I add up a whole week of shifts?

Not in one go. Work out each shift here, then add the decimal hours together — decimals add up correctly, whereas adding clock times such as 7:50 + 8:20 by hand invites mistakes.