Clock readings, not timestamps
How the duration calculator works
The calculator subtracts one clock reading from another. Each entry is a time of day, not a calendar timestamp: 09:00 means nine o'clock in the morning on an unspecified day, and the tool never invents the date behind it.
For a same-day window, the end time must be later than the start time. When a shift finishes on the following morning, choose Ends next day and the calculator adds 24 hours to the end reading before subtracting. That is the only date-like adjustment the tool makes.
elapsed = end clock − start clocknext-day elapsed = (end clock + 24:00) − start clockbreak-adjusted = elapsed − break, where 0 ≤ break ≤ elapsedThe page opens with 09:00 to 17:30 and a 30-minute break. The elapsed time is 8 hours 30 minutes; after the break, the result is 8 hours 0 minutes, displayed as 08:00. The rest of the panel shows that same span as 8.00 decimal hours and 480 minutes.
Elapsed time vs break-adjusted time
Elapsed time is the full distance between the two clock readings. Break-adjusted time is what remains after the break you enter. The result panel leads with the break-adjusted figure because that is usually the number someone needs for a schedule, but the elapsed time and the deducted break stay visible in separate rows so the arithmetic can be checked.
Break minutes are whole minutes. Leave the field blank for no break. A 30-minute break on a four-hour window turns 04:00 into 03:30; the same break on an eight-and-a-half-hour window turns 08:30 into 08:00.
A break equal to the elapsed time is allowed and produces 00:00. A break longer than the elapsed time is rejected with a message instead of being clamped, because silently shortening the break would hide an input mistake.
Overnight shifts and the next-day option
Without the next-day option, 22:00 to 06:00 is rejected: a clock repeats every 24 hours, so the calculator cannot know which 06:00 you mean. Selecting Ends next day makes the span 8 hours. With a 45-minute break, 22:00 to 06:15 the next morning gives 8 hours 15 minutes elapsed and 7 hours 30 minutes after the break.
The next-day option also requires the end clock time to be at or before the start time. If the end time is later, the window is a same-day span, and adding 24 hours would describe more than one day. This calculator caps a window at 24 hours; for longer durations, use the Time Calculator to add or subtract durations instead.
A full 24-hour window such as 09:00 to 09:00 next day is allowed and displays 24:00. It is a clock-arithmetic result, not a check that the shift was scheduled or permitted under any employment rule.
hh:mm, decimal hours, and total minutes
The same duration can be written three ways. hh:mm keeps hours and minutes separate. Decimal hours divides the minutes by 60, which is the form some timekeeping and project systems accept. Total minutes multiplies hours by 60 so the whole span is one unit.
decimal hours = total seconds ÷ 3,600total minutes = total seconds ÷ 608 h 30 min = 8.50 decimal hours = 510 minutes| Duration | hh:mm · decimal hours · total minutes |
|---|---|
| 8 hours | 08:00 · 8.00 · 480 min |
| 8 hours 30 minutes | 08:30 · 8.50 · 510 min |
| 7 hours 30 minutes | 07:30 · 7.50 · 450 min |
| 15 minutes | 00:15 · 0.25 · 15 min |
The decimal figure is rounded to two places for display only. The total-seconds line in the result panel keeps the exact count, which is why a duration with seconds can show a rounded decimal hour without changing the underlying time.
Worked examples
Each row uses the same rule as the calculator: find the elapsed clock time, add a day when the end is marked next day, then subtract the break.
| Shift and break | Elapsed → break-adjusted |
|---|---|
| 09:00–17:30, 30 min break | 08:30 → 08:00 |
| 22:00–06:15 next day, 45 min break | 08:15 → 07:30 |
| 08:00–16:00, no break | 08:00 → 08:00 |
| 23:30–00:30 next day, no break | 01:00 → 01:00 |
What the calculator does not do
- It does not use a calendar date, so it cannot tell one Tuesday from the next.
- It does not use a time zone or daylight-saving offset. A spring-forward or fall-back change does not alter the 24-hour clock arithmetic here, and the tool cannot tell you the local elapsed time across such a change.
- It does not apply payroll, overtime, rounding, unpaid-meal, or reporting rules. The break is an arithmetic input, not a legal or company policy.
- It does not accept a window longer than 24 hours; use the Time Calculator for multi-day durations.
- It accepts break minutes from 0 to 1,440 and rejects a break longer than the elapsed time.
- It does not parse AM/PM text itself; the browser's time field supplies the clock value.
For calendar gaps rather than clock gaps, the Date Calculator counts whole days and weekdays between two dates. For durations that are not tied to a start and end clock time, the Time Calculator adds or subtracts hours, minutes, and seconds directly.
Time duration calculator FAQs
Does the hh:mm result include the break?
Yes. The large result is the break-adjusted duration. The elapsed time before the break is shown separately, so 09:00–17:30 with a 30-minute break displays 08:00 as the headline and 08:30 as the elapsed time.
How do I calculate an overnight shift?
Set the end time to the morning clock time, then choose Ends next day in the day-boundary menu. For example, 22:00 to 06:00 next day is 08:00. If the end time is later than the start time, keep the same-day setting instead.
How do I convert the result to decimal hours for a timesheet?
Read the decimal-hours row in the result panel; the calculator divides the break-adjusted minutes by 60. For example, 8 hours 30 minutes is 8.50 and 8 hours 0 minutes is 8.00. Confirm whether your timesheet expects the elapsed or break-adjusted figure before entering it.
Does it apply overtime or payroll rounding?
No. The duration is exact clock arithmetic. Overtime thresholds, rounding to the nearest quarter hour, unpaid meal rules, and other payroll conventions are outside the model; apply them separately if your employer or jurisdiction uses them.