Mathematics & GeneralLast reviewed: November 2026

Time Duration Calculator

The Time Duration Calculator finds the exact gap between any two times, whether it is a work shift, a flight, or the time left until an event. It handles durations that cross midnight, adds and subtracts hours and minutes without the usual borrow-and-carry mistakes, and can deduct a break to give the true working time.

Key facts:
  • Durations that cross midnight are handled automatically.
  • A 30-minute break is deducted to give true working time.
  • Add and subtract hours and minutes without borrow-and-carry errors.
  • Use it for shifts, flights, timers and countdowns to events.

Loading calculator…

Share or Export Current Results

Share Time Duration Calculator directly or copy link to clipboard

TwitterLinkedInFacebookWhatsApp

Calculation Formula & Mathematical Engine

Theoretical equation governing this computation.

\text{Duration} = \text{End Time} - \text{Start Time} - \text{Break}, \quad \text{Total Minutes} = (\text{Hours} \times 60) + \text{Minutes}

Variable Definitions

Start TimeTime the period begins
End TimeTime the period ends
BreakBreak time to deduct from the duration
DurationResulting length of time, in hours and minutes

Step-by-Step Calculation Example

A Shift From 08:30 to 17:15 With a 45-Minute Lunch

Scenario: An employee clocks in at 08:30, clocks out at 17:15, and takes a 45-minute unpaid lunch break.
Start Time08:30
End Time17:15
Lunch Break45 minutes
Crosses MidnightNo
Execution Steps
  1. 1Time on site: 17:15 - 08:30 = 8 hours 45 minutes
  2. 2Convert to minutes: 8 × 60 + 45 = 525 minutes
  3. 3Deduct the lunch break: 525 - 45 = 480 minutes
  4. 4Convert back to hours: 480 / 60 = 8 hours 0 minutes worked
  5. 5Check by adding: 08:30 + 8 hours 45 minutes = 17:15
Final Verified Output:8 hours 45 minutes on site | 8 hours 0 minutes worked after a 45-minute break

Comprehensive Practical Guide

In-depth analysis, domain guidelines, standard practices, and common pitfalls.

Crossing Midnight

When the end time is earlier than the start time, the period runs past midnight. Add 24 hours to the end time before subtracting: a shift from 22:00 to 06:00 is (06:00 + 24:00) - 22:00 = 8 hours. The calculator handles this automatically so night shifts come out right.

Adding Durations Without Mistakes

Adding hours and minutes works in base 60, not base 100: 2 hours 45 minutes plus 3 hours 20 minutes is 6 hours 5 minutes, because 45 + 20 = 65 minutes, which carries 1 hour and leaves 5 minutes. Convert everything to minutes first, add, then convert back to hours to avoid the trap.

Frequently Asked Questions About Time Duration Calculator

Direct, verified answers to common calculation and methodology questions.

Subtract the start time from the end time. From 08:30 to 17:15 is 8 hours 45 minutes. If the end time is earlier than the start time, the period crosses midnight, so add 24 hours to the end time first.
Authoritative Sources & Data References:
  • National Institute of Standards and Technology (NIST) — Time and frequency
  • U.S. Naval Observatory — Time services

Disclaimer: Results are based on the times you enter; check time zones and daylight saving changes for travel or shift planning.