How Time duration calculator works
Time Duration Calculator finds the elapsed duration between two times of day: the start time and the end time you type. It handles overnight spans correctly, so a shift from 22:30 to 06:15 the next morning yields a duration of 7 hours and 45 minutes rather than a negative number. The calculation runs entirely in the browser; neither the times you enter nor any results leave your device.
The arithmetic converts both times to a total number of minutes from midnight. If the end time (in minutes from midnight) is less than the start time, the tool adds 24 hours (1440 minutes) to the end time before subtracting, which correctly accounts for the overnight wrap. The result is displayed in hours and minutes, and optionally as a decimal hours figure for use in time-tracking spreadsheets.