Morning to Afternoon Shift
Calculating time worked between 8:30 AM and 4:45 PM with a 30-minute lunch break.
(16:45 − 08:30) − 30m = 8h 15m − 30m Calculate exact hours and minutes difference between any two timestamps with quick presets and break deduction.
Select the hour, minute, and AM/PM (or 24-hour mode) for your starting timestamp, or click a Quick Preset below.
Enter the concluding timestamp. The calculator automatically checks if your span crosses midnight.
Enter any unpaid break or lunch minutes to calculate net elapsed duration.
Instantly view total hours & minutes, decimal hours, and step-by-step arithmetic.
Duration = (End_Hours × 60 + End_Minutes) − (Start_Hours × 60 + Start_Minutes) End_Hours, End_Minutes = Ending timestamp converted to minutes from midnightStart_Hours, Start_Minutes = Starting timestamp converted to minutes from midnightDuration = ((End_Hours + 24) × 60 + End_Minutes) − (Start_Hours × 60 + Start_Minutes) + 24 Hours = 1,440 minutes added when the end time occurs on the following calendar dayStep-by-step breakdown of common real-world time scenarios, work shifts, and duration math.
Calculating time worked between 8:30 AM and 4:45 PM with a 30-minute lunch break.
(16:45 − 08:30) − 30m = 8h 15m − 30m Measuring shift duration from 10:15 PM to 6:45 AM with a 45-minute unpaid break.
(30:45 − 22:15) − 45m = 8h 30m − 45m Timing a focus session between 2:10 PM and 3:55 PM.
15:55 − 14:10 = 1 hour 45 minutes Finding the exact difference between two timestamps is essential for scheduling appointments, logging work shifts, calculating travel durations, and coordinating across time zones. For advanced second-by-second precision and live mathematical proof steps, use our flagship Time Duration Calculator, or calculate work shifts with meal breaks on our Work Hours Calculator.
Because time is measured in base-60 (sexagesimal) rather than base-10 (decimal), subtracting minutes requires borrowing 60 minutes from the adjacent hour whenever the end minute is smaller than the start minute (see our Military Time Converter to convert AM/PM times into 24-hour format first):
8:45 AM and 4:15 PM.8:45 AM = 08:45, 4:15 PM = 16:15.15 hours 75 minutes.15:75 − 08:45 = 7 hours 30 minutes.
When a shift starts late in the evening and concludes the following morning (e.g. 10:00 PM to 6:30 AM), a naive subtraction produces a negative number (6.5 − 22 = −15.5). In modular 24-hour arithmetic, add 24 hours (1,440 minutes) to the end time:
(6:30 + 24:00) − 22:00 = 30:30 − 22:00 = 8 hours 30 minutes. For general shift duration, you can also use the Hours Calculator.
Enter your start time and end time into the calculator. If your end time occurs on the next day (e.g. 9:00 PM to 5:00 AM), check the overnight toggle or let the calculator automatically resolve the 24-hour difference.
Duration = End Time (in minutes from midnight) − Start Time (in minutes from midnight). If End Time < Start Time, add 1,440 minutes (24 hours) to End Time before subtracting.
All calculations on this tool are deterministic and rigorously tested against base-60 modulo arithmetic and US Fair Labor Standards Act (FLSA 29 CFR § 785.48) payroll rounding guidelines.