Time & date

Time Duration Calculator

Find gross and net elapsed time between two clock times or calendar dates, with 12/24-hour input, overnight modes, seconds, and break deductions.

Quick guide

How to use the Time Duration Calculator

  1. Enter or choose calculation mode, clock format, start time, end time, unpaid break (optional, minutes or h:mm).
  2. Select Calculate duration.
  3. Review the main result, supporting breakdown, and step-by-step calculation notes.
  4. 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.

Net Duration = Gross Elapsed Time − Unpaid Break

Calculation method

  1. Parse start and end times (including optional seconds) in the explicitly selected 24-hour or 12-hour AM/PM format.
  2. In Clock mode, apply Automatic (earlier end = next day, equal = 0), Same-day (rejects earlier end), or Next-day (equal times = 24h) logic.
  3. In Date-and-time mode, compute timezone-independent wall-clock calendar differences using UTC calendar dates so browser timezones never distort results.
  4. 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 → EndAutomaticSame DayNext Day
09:15 → 17:458h 30m8h 30m32h 30m
22:30 → 06:157h 45m (overnight)Validation error7h 45m
09:00 → 09:000s0s24h
23:59:30 → 00:00:1545s (overnight)Validation error45s

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).
Frequently Asked

Time Duration Calculator – Frequently Asked Questions

Common questions, edge-cases, and mathematical explanations.

How do I calculate a 24-hour span when start and end times are identical?

Choose “Next day (overnight / 24h)” under Day handling. Automatic mode treats equal clock times like 09:00 to 09:00 as 0 duration, whereas Next-day mode returns 24h.

Does Date-and-time mode adjust for Daylight Saving Time?

No. It uses timezone-independent wall-clock calendar arithmetic so every visitor gets the exact same calendar result regardless of device timezone settings.

Can I include seconds in the start and end times?

Yes. Enter HH:MM:SS (for example 23:59:30 and 00:00:15) in either 24-hour or 12-hour mode.

Analytics preferences

Optional Google Analytics cookies help us understand visits and improve our tools. Analytics is off until you allow it. Your tool inputs and files are never included in our analytics events. Read our privacy policy.

Analytics is off.