Trip Duration Calculator
Subtract a start time from an end time, roll past midnight and subtract the breaks you type.
The page subtracts the two wall-clock times in minutes, reads an end earlier than the start as the next day, then removes the break minutes you enter. It prints the net duration, the raw span and whether the trip crosses midnight.
A start and end that are identical is refused, and breaks longer than the span are refused with both figures named rather than producing a negative duration. There is no time-zone conversion here: both times are on the same clock.
Two times and one number give one subtraction, so the same trip prints the same duration after a reload.
Duration is wall-clock subtraction in minutes with the breaks taken off afterwards: 08:30 to 17:15 is a span of 8 h 45 min, which is 8 h 0 min once 45 minutes of breaks are removed.
An end time earlier than the start is read as the next day, and the output says so rather than showing a negative span. Identical times, or breaks longer than the span, are refused.
How to use it
Enter the start and end times as hh:mm and the total break minutes, then press Run. Three lines: the net duration, the span minus breaks, and whether the trip ends the same day or the next.
The arithmetic
Both times become seconds since midnight and are subtracted; if the end is earlier, a day is added first. Break minutes are then subtracted, and a result at or below zero is refused rather than printed as a negative duration.
What to Expect
Best for
- Turning a departure and arrival time into the time actually spent travelling.
What this tool keeps
- The net duration, the raw span and the break minutes subtracted.
Sample input
08:30 to 17:15, 45 minutes of breaks.
Sample output
Duration = 8 h 0 min 0 s Span 8 h 45 min 0 s − 45 min of breaks Same day
Frequently asked questions
What if my trip crosses midnight?
Enter the end time as the clock reads it, for example 01:30, and the page adds a day when the end is earlier than the start. The third line then says it ends the next day.
Are the breaks included in the span?
Yes: the span is the whole wall-clock difference and the breaks are subtracted from it. The middle line shows both so the subtraction can be checked.
Is a time of 24:00 accepted?
No. Clock times run to 23:59, so midnight is entered as 00:00 and read as the next day when it follows a later start.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.