Quick guide
How to use the Time Duration Calculator
- Enter or choose calculation mode, clock format, start time, end time, unpaid break (optional, minutes or h:mm).
- Select Calculate duration.
- Review the main result, supporting breakdown, and step-by-step calculation notes.
- Copy the output or download the generated file when available.
What this tool does
Calculate exact gross and net elapsed time between two clock times or calendar dates with optional seconds, explicit 12-hour or 24-hour input, selectable day handling (automatic, same-day, or next-day), and unpaid break subtraction. Every result includes totals in hours, minutes, and seconds plus the exact day/date assumption used.
Calculation method
- Parse start and end times (including optional seconds) in the explicitly selected 24-hour or 12-hour AM/PM format.
- In Clock mode, apply Automatic (earlier end = next day, equal = 0), Same-day (rejects earlier end), or Next-day (equal times = 24h) logic.
- In Date-and-time mode, compute timezone-independent wall-clock calendar differences using UTC calendar dates so browser timezones never distort results.
- Subtract any optional unpaid break duration and report gross, break, net, and total hours/minutes/seconds.
Good to know: Date-and-time mode computes wall-clock calendar differences without adjusting for local timezone or daylight saving time transitions.
Example: overnight shift from 22:30 to 06:15 with 30m break
Input: Mode: Clock; 24-hour; Start: 22:30; End: 06:15; Day handling: Automatic; Break: 30
Result: Net: 7h 15m (Gross: 7h 45m · Break: 30m · 7.25 total hours)
From 22:30 to midnight is 1h 30m, plus 6h 15m after midnight equals 7h 45m gross. Deducting a 30-minute break leaves 7h 15m net.
Day handling modes compared
| Start → End | Automatic | Same Day | Next Day |
|---|---|---|---|
| 09:15 → 17:45 | 8h 30m | 8h 30m | 32h 30m |
| 22:30 → 06:15 | 7h 45m (overnight) | Validation error | 7h 45m |
| 09:00 → 09:00 | 0s | 0s | 24h |
| 23:59:30 → 00:00:15 | 45s (overnight) | Validation error | 45s |
Practical uses
- Calculating overnight hospital, security, or factory shifts
- Measuring exact stopwatch spans with seconds
- Computing multi-day project intervals in wall-clock time
- Finding net study or flight time after deducting layovers/breaks
Accuracy tips and common mistakes
- To calculate an exact 24-hour shift from 09:00 to 09:00, switch Day handling from Automatic to Next day.
- Date-and-time mode computes wall-clock differences and intentionally does not apply local daylight saving time (DST) shifts.
- Unpaid break accepts plain minutes (such as 30) or H:MM notation (such as 0:45).