Time Between Times Calculator
Find the time difference between two clock times, with optional overnight handling.
Enter your values and click Calculate
How It Works
Each time is first converted to minutes since midnight: hours are converted using the AM/PM value (adding 12 for PM hours, and handling the edge cases of 12 AM as 0 and 12 PM as 12 correctly), then the minute component is added. The difference is end minutes minus start minutes. If the result is negative and overnight mode is off, an error is shown because the end is before the start. If the overnight toggle is enabled and the result is zero or negative, 1,440 minutes (24 hours) is added to wrap correctly across the midnight boundary — for example, a shift from 10:00 PM to 6:00 AM correctly computes 8 hours. Total minutes are divided by 60 to produce decimal hours (useful for billing), and the same total is also formatted as hours and minutes (H:MM) for readability on timesheets.