The duration calculator works in clock time rather than dates: given a start and end time, it returns the elapsed hours and minutes. It is the tool for timesheets, session lengths, video runtimes and shift calculations.

The main complication is crossing midnight. A shift from 22:30 to 06:00 is seven and a half hours, not minus sixteen and a half. Any correct implementation has to detect that the end time is earlier than the start and add 24 hours before subtracting. Manual calculation fails here often enough that it is worth checking any result that looks negative.

Paid breaks and unpaid time need separate treatment. If a shift includes 30 unpaid minutes, subtract them after computing total duration rather than trying to adjust the start or end time, which is where most timesheet errors originate. For totals across several days, sum the daily durations and then convert to decimal hours at the end — decimal conversion at each step invites rounding drift.

Online Time Duration Calculator

Enter a start time and an end time to get the exact elapsed duration in hours, minutes and seconds. Handy for shifts, study blocks and billing by the hour.

Result:

Tool Features

Common Usage

Frequently Asked Questions

How do I calculate a shift that crosses midnight?

Treat the end time as belonging to the following day, effectively adding 24 hours before subtracting. A 22:30 to 06:00 shift is 7 hours 30 minutes.

How do I convert 7 hours 45 minutes to decimal?

Divide the minutes by 60: 45 ÷ 60 = 0.75, giving 7.75 hours. This form is what payroll systems usually require.

Should unpaid breaks be subtracted before or after?

Compute total duration first, then subtract the break. Adjusting the timestamps instead tends to produce errors that are hard to trace later.

Why is my total minutes off by one?

Usually because seconds were truncated rather than rounded. Convert to a common unit before summing if precise totals matter.