Time Duration Calculator
A time duration calculator adds two lengths of time, subtracts the second from the first, converts a single duration into HH:MM:SS and decimal totals, or finds net hours between two clock times after an unpaid break. Hours on the clock output may exceed 24.
How to use the time duration calculator
- Choose Add, Subtract, Convert A only, or Hours between clock times.
- For duration modes, enter days, hours, minutes, and seconds. For clock mode, enter start, end, unpaid break, and optional day multiplier.
- Press Calculate. Read HH:MM:SS, decimal hours, and related totals. Clock mode also shows overtime over the daily threshold.
- Parts may be larger than clock limits before normalize (for example 90 minutes becomes 1h 30m in the total).
Time Duration Calculator
Duration arithmetic
| Add / Subtract | A ± B in seconds, then normalize |
|---|---|
| Convert | Normalize A into clock and decimal totals |
| Clock hours | End - start - unpaid break; overnight wrap supported |
| Outputs | HH:MM:SS, decimal hours, totals |
| Upload | None; runs in the browser |
What a time duration calculator does
A time duration calculator treats each side as a length of time built from days, hours, minutes, and seconds, or as the gap between two wall-clock times. Add returns the sum. Subtract returns A minus B. Convert A only normalizes one duration. Clock mode subtracts an unpaid break from the shift span.
Example: 2h 30m plus 1h 45m equals 4:15:00 (4.25 decimal hours). A 09:00 to 17:00 shift with a 30-minute break is 7.5 hours.
Hours between two clock times
Enter start and end as HH:MM. If the end is earlier than the start, the page treats the shift as overnight and adds 24 hours before subtracting. Unpaid break minutes come off the gross span. Decimal hours = total minutes ÷ 60.
How durations are normalized
Every duration input converts to total seconds (1 day = 86400 s). The result is then split into days, hours, minutes, and seconds. Minutes and seconds on the Days + time row stay in 0 to 59. The HH:MM:SS row may show hour totals past 24.
Worked time duration examples
| Operation | Inputs | Result |
|---|---|---|
| Add | 2h 30m + 1h 45m | 4:15:00 |
| Subtract | 2h - 3h | -1:00:00 |
| Convert | 1d 2h 30m | 26:30:00 |
| Clock | 09:00-17:00, break 30 | 7.50 h |
| Overnight | 22:00-06:00, break 30 | 7.50 h |
Limits and privacy
Duration parts cannot be negative; use Subtract to take time away. Clock mode is a shift sketch, not a certified time clock. Math runs in your browser; CZNull does not receive the values.