Time Duration Calculator

Find the duration between two times of day, including overnight spans.

Adding and subtracting times without slipping

Time arithmetic trips people because it is base 60 for minutes and seconds but base 24 for hours, so ordinary decimal intuition fails. Ninety minutes is 1.5 hours as a decimal but 1:30 in clock notation, and mixing the two is the single most common error โ€” adding 1.30 and 1.45 as decimals gives 2.75, while adding 1:30 and 1:45 as times gives 3:15. They are not the same quantity.

The reliable method is to convert everything to a single small unit, do the arithmetic, then convert back. Total the minutes, then divide by 60 for hours and take the remainder as minutes. Two further cases need care: a span crossing midnight needs 24 hours added to the end time before subtracting, or you get a negative result; and payroll conventions often round to the nearest quarter-hour, so a calculated duration and a paid duration can legitimately differ. Where a span crosses a daylight-saving change, the elapsed clock time and the true elapsed time differ by an hour.

Worked example

A night shift runs from 22:00 to 06:30. Because the end time is on the next day, add 24 hours to it: 06:30 becomes 30:30. Then subtract: 30:30 โˆ’ 22:00 = 8 hours 30 minutes. As a decimal for payroll, that is 8.5 hours.

Converting minutes to decimals catches people out. 7 hours 45 minutes is 7.75 hours (45 รท 60 = 0.75), not 7.45. Paying 7.45 hours instead of 7.75 underpays every such shift by 18 minutes.

Common mistakes to avoid

  • Writing minutes as decimal digits, such as 7:45 as 7.45 hours.
  • Forgetting unpaid breaks. An 8:30 shift with a 30-minute unpaid break is 8 paid hours.
  • Ignoring daylight saving changes for overnight shifts in countries that use it. India does not, but the UK, US and Europe do.

Last reviewed: 5 November 2026 by the YogiCalc team ยท How we calculate and verify ยท Spotted an error? Tell us

Frequently asked questions

Why does adding times as decimals give the wrong answer?

Because clock notation is base 60, not base 100. In 1:45 the 45 means forty-five sixtieths of an hour, not forty-five hundredths. Convert to decimal hours or to total minutes before adding, then convert back.

How do I calculate a shift that crosses midnight?

Add 24 hours to the end time before subtracting, or the result is negative. A shift from 22:00 to 06:00 is 30:00 minus 22:00, which is eight hours.

How do I convert minutes to decimal hours?

Divide by 60. Ninety minutes is 1.5 hours, and 20 minutes is 0.333 hours. Payroll systems generally want decimal hours, while schedules are usually written in clock notation.

Why does my total differ from my timesheet?

Often rounding. Many payroll systems round each entry to the nearest quarter-hour, so summing exact durations and summing rounded entries produce slightly different totals.

How do I convert minutes to decimal hours?

Divide the minutes by 60. For example, 15 minutes is 0.25 hours, 20 minutes is 0.33 hours and 45 minutes is 0.75 hours.

How do I add up several durations?

Add the hours and minutes separately, then convert every 60 minutes into an extra hour. 3h 40m + 2h 35m = 5h 75m = 6h 15m.