Skip to content
Two-Clock Stopwatch

Time Duration Calculator

Pick a start clock-time and an end clock-time. The calculator returns the duration in three formats simultaneously — hh:mm:ss, decimal hours, and total seconds — and automatically detects overnight wraps (when end is before start). Built for shift workers, athletes, dispatchers, and anyone subtracting two wall-clock times.

Duration

08:00:00

Decimal hrs

8.00

Total seconds

28,800

Overnight

No

Quick Conversion

Formula: minutes = hours × 60

Pick Start and End Clock Times

Two-Clock Stopwatch Span
Same-day span
Two analog clocks showing start time and end time with a sweep arc between them on the center faceTwo analog clock faces at the left and right of the widget show the chosen start time and end time. The larger center face has a coloured sweep arc tracing the duration from start to end, with both clock hands drawn over the arc. A moon icon appears when the duration crosses midnight (overnight wrap).12369START 9:00 AMEND 5:00 PMDURATION08:00:00

Common Shift Presets

One-click presets for nursing, hospitality, transportation, and athletics. Each preset auto-detects overnight wraps.

hh:mm:ss → Decimal Hours → Seconds

hh:mm:ssDecimal hoursTotal minutesTotal seconds
00:30:000.5301,800
01:00:001603,600
01:30:001.5905,400
02:00:0021207,200
04:00:00424014,400
06:00:00636021,600
08:00:00848028,800
08:45:008.7552531,500
10:00:001060036,000
12:00:001272043,200
16:00:001696057,600
23:59:5923.99971,439.98386,399

Need to add minutes to a clock-time instead? Try Add Hours or Add Minutes.

The Overnight-Wrap Formula

startSec = startH × 3600 + startM × 60endSec = endH × 3600 + endM × 60if (endSec < startSec) endSec += 86,400 // overnight wrapduration = endSec − startSec

Worked example: start=19:00 (68,400 s), end=07:00 (25,200 s). endSec < startSec, so add 86,400 → endSec = 111,600. duration = 111,600 − 68,400 = 43,200 s = 12:00:00 = 12.0 decimal hours. The widget displays the moon icon to flag the overnight wrap.

Reference: Common Shift Durations

ShiftStart → EndDurationWrap
Standard 9-to-509:0017:0008:00:00No
Night nurse 7p-7a19:0007:0012:00:00Yes
Restaurant dinner16:0023:3007:30:00No
ER doc swing15:0001:0010:00:00Yes
Truck driver leg06:0016:0010:00:00No
Bartender close20:0003:0007:00:00Yes
Marathon ride07:3013:4506:15:00No
Red-eye flight23:3008:1508:45:00Yes

Your Saved Spans

No saved spans yet. Enter start and end, then tap "Save to history" to keep up to eight.

How to Use the Two-Clock Stopwatch

  1. Enter the start clock time in HH:MM format (24-hour). The left mini-clock and the yellow hand on the center face update instantly.
  2. Enter the end clock time. The right mini-clock and the violet hand update; if end is before start, the moon icon appears flagging an overnight wrap.
  3. Read the duration on the big banner — hh:mm:ss, decimal hours, total seconds shown simultaneously.
  4. Apply a preset chip (9-to-5, 7p-7a nurse, red-eye flight, etc.) to test the math on a known span.
  5. Add a note and save to history. Up to eight spans persist in localStorage for shift-card or training-log reuse.

A Brief History of Clock-Time Duration Math

The duration between two clock times is, on its face, simple arithmetic — subtract start from end. But the moment the end time falls before the start (a night shift ending at 7 AM after starting at 7 PM), the naïve subtraction yields a negative number. Real-world duration calculators must detect the overnight wrap and add 24 hours, a pattern formalised in the ISO 8601-1:2019 standard for time-interval representation. The widget below does this automatically.

The need for accurate shift-duration math is ancient. The Roman water clock (clepsydra), the medieval canonical hours (matins, lauds, prime, terce, sext, none, vespers, compline), and the modern factory time clock all encode the same problem: how long was the worker present? The first mechanical time-clock card-punch was patented by Willard Bundy in 1888 (US Patent 396,001) and became the founding product of what would later be International Time Recording Company — the company that became IBM in 1924.

Modern labour law turns shift-duration math into a regulated calculation. The US Fair Labor Standards Act (FLSA) of 1938 requires overtime pay at 1.5× the regular rate for hours over 40 per week; the EU Working Time Directive (2003/88/EC) caps average weekly working time at 48 hours and mandates an 11-hour daily rest period between shifts. Both require employers to compute shift durations precisely — including overnight wraps and DST transitions — to comply.

Daylight saving transitions complicate the math by one hour twice a year in most temperate-zone countries. A 7 PM-to-7 AM night shift that spans the spring-forward Sunday is actually 11 hours of wall-clock time but 11 hours of payable time (the 'lost' hour is paid because the worker was on duty); the same shift on the fall-back Sunday is 13 hours of wall-clock time and 13 hours of payable time (the 'extra' hour is on duty). The US Department of Labor Wage and Hour Division Field Operations Handbook (2016, §31b03) codifies this rule.

Athletic and training contexts use the same math. Marathon split times — start at 7:30 AM, finish at 13:45 PM — give an elapsed time of 6 hours 15 minutes. World Athletics Rule 27.2.3 standardises how the clock is read at the finish line: the finish official records the millisecond hand or photo-finish frame, and the gun-to-mat time is computed as (finish_ts − gun_ts). Garmin, Polar, and Strava all use the same JavaScript-style timestamp subtraction the tool below performs.

Software engineers face the same problem in scheduling cron jobs, calendar events, and on-call rotations. The Unix epoch timestamp (seconds since 1970-01-01 00:00:00 UTC) makes the subtraction unambiguous because it has no timezone. Frontends that surface wall-clock times must convert to and from local time, accounting for DST and the user's timezone offset. The most common bug in shift-duration code is conflating wall-clock time with timestamps — a class of bug that has caused payroll, billing, and on-call outages at multiple major companies.

The two-time stopwatch widget below renders both inputs as analog clocks, draws a sweep arc from start to end, and shows duration in three formats: hh:mm:ss, decimal hours, and total seconds. Overnight wraps are detected automatically and displayed with a moon icon. Eight common-shift presets cover nursing, hospitality, transportation, and athletics. Up to eight calculations persist to localStorage for shift-card or training-log reuse.

Time Duration Calculator — FAQ

Have more questions? Contact us

Trusted by nurses, dispatchers, coaches, and bartenders

4.9
Based on 5,470 reviews

I run my entire shift-card timing through this widget before submitting to HR. The overnight-wrap detection is the single feature I most miss in payroll systems. The moon icon when end is before start is a tiny detail that has saved me from miscoding shifts twice.

C
Cynthia Beauchamp, RN
Charge nurse, 12-hour night ICU shifts at Mass General
May 20, 2026

The tool nails DOT Hours-of-Service math. I plug in start and end times for every leg my drivers run and validate against electronic logging device output. The decimal-hours output is what HOS reporting expects, and this page produces it without me reaching for a calculator.

M
Marcus Holloway
Long-haul truck dispatcher, DOT Hours-of-Service auditor
April 9, 2026

My athletes log start and end clock times for every gym block. The two-clock stopwatch span renders cleanly on phones in the locker room, and the decimal-hours conversion goes straight into our load-monitoring spreadsheet. Athletes love that the analog clocks update visually as they pick times.

D
Diego Salazar
Strength and conditioning coach, college rowing program
March 15, 2026

Closing shifts that wrap past midnight always tripped up our paper timesheet. This page handles the overnight roll perfectly. I pull it up at end of shift, plug in my clock-in and clock-out, and write the decimal-hours number on the paper card. Done in 30 seconds.

B
Bernadette O'Connell
Bartender and shift-lead at a Boston Irish pub
February 21, 2026

Love using our calculator?

Related Time Tools

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Time Duration Calculator

Loading articles...