SolvedCalc All calculators

Dates and time

Time duration calculator

Type a start and end time in 24-hour format (HH:MM). If the end time is earlier, it is treated as the next day, which works for overnight trips and sleep.

Press Solve it to see the answer and how it was solved.

How it works

Clock time is awkward to subtract because an hour has 60 minutes, not 100. The easy fix is to turn both times into "minutes after midnight", subtract, and turn the answer back into hours and minutes. 08:45 is 525 minutes, 15:20 is 920 minutes, and the gap is 395 minutes.

Many timesheets and homework planners use decimal hours too. 6 hours 30 minutes is 6.5 hours, because 30 minutes is half of an hour. Be careful: 6.30 hours is not 6 hours 30 minutes.

Formula

  • Minutes after midnight = hours x 60 + minutes
  • Duration = end - start (+1,440 if the end is the next day) - break
  • Decimal hours = minutes รท 60

Solved example

A school day runs from 08:45 to 15:20 with a 30-minute lunch. 920 - 525 = 395 minutes, minus 30 = 365 minutes, which is 6 h 5 min, or 6.08 hours.

Sleep from 22:30 to 06:15 crosses midnight: 375 - 1,350 + 1,440 = 465 minutes = 7 h 45 min.

FAQ

How do I enter 3:20 pm?

Use 24-hour time: add 12 to afternoon hours, so 3:20 pm is 15:20. Midnight is 00:00 and noon is 12:00.

Can it go over 24 hours?

No. For spans longer than a day, use the days between dates calculator and add the hours.

Why does 1.5 hours mean 1 hour 30 minutes?

Because 0.5 of an hour is half of 60 minutes. 0.25 hours is 15 minutes and 0.75 hours is 45 minutes.