Time Duration Calculator

Overnight + Break
Formula & Quick Reference
Net Minutes = (End − Start [+ 1440 if overnight]) − Break
  • Overnight shifts: Automatically wraps across midnight when End < Start
  • Decimal hours: Converts minutes cleanly for payroll timesheets
  • Break deduction: Subtracts unpaid meal or rest breaks from gross time

Interactive Graph

Measuring Exact Hours Between Two Times

Whether you are filling out a weekly timesheet, checking how long a road trip took, or calculating how much sleep you got last night, subtracting two clock times by hand gets messy fast—especially when a shift starts in the morning and ends in the evening, or crosses midnight into the next day.

This time duration calculator measures the exact elapsed time between any Start Time and End Time, automatically handles overnight shifts, subtracts any unpaid break minutes, and converts the result into decimal hours for payroll.

How the Time Duration Tool Works

Pick your Start Time and End Time, then enter any Unpaid Break (minutes)—such as 30 minutes for lunch.

The hero card displays your net elapsed duration in hours and minutes (7h 30m), alongside decimal hours (7.50), total net minutes, gross minutes before break, and a badge letting you know if the shift crossed midnight. The donut chart splits your total shift into net work minutes versus break minutes.

How Overnight and Break Math Works

First, both clock times are converted into minutes past midnight: Minutes = Hours × 60 + Minutes. Subtracting Start from End gives the raw difference. If End is earlier than Start (for example, 22:00 to 06:30), the difference is negative, so the calculator adds 1,440 minutes (one full 24-hour day) to wrap cleanly across midnight. Finally, it subtracts your unpaid break minutes and divides by 60 to give both H:MM and decimal hours.

Worked Example 1: Standard 9-to-5:30 Workday

Start at 09:00 (540 min) and end at 17:30 (1,050 min). Gross duration is 510 minutes (8h 30m). Subtracting a 30-minute unpaid lunch break leaves 480 minutes, which equals 8h 00m (8.00 decimal hours).

Worked Example 2: Overnight Shift (22:00 to 06:30)

Start at 22:00 (1,320 min) and end at 06:30 (390 min). Because 390 < 1,320, add 1,440: 390 − 1,320 + 1,440 = 510 gross minutes. After a 30-minute break, net work time is 8h 00m.

Quick Tip for Payroll Timesheets

Payroll systems almost always ask for decimal hours rather than minutes. Remember that 15 minutes = 0.25 hours, 30 minutes = 0.50 hours, and 45 minutes = 0.75 hours—or just copy the exact Decimal Hours card straight onto your timesheet.

Using Time Duration for Sleep, Travel, and Study Logs

Beyond tracking work hours, checking exact elapsed time helps with everyday routines. If you go to bed at 23:15 (11:15 PM) and set your alarm for 06:45 (6:45 AM) with 0 break minutes, entering those two times immediately shows 7h 30m of sleep—five full 90-minute sleep cycles. If you leave on a road trip at 07:40 and arrive at 14:25 after a 35-minute lunch stop, you spent 6h 10m actually driving.

Avoiding AM/PM Mix-Ups

Most browsers show the time picker in either 12-hour (AM/PM) or 24-hour (00:00–23:59) format depending on your device settings. Double-check AM versus PM when entering times—mixing up 12:00 PM (noon) with 12:00 AM (midnight) will shift your duration by 12 hours. Looking at the Crosses Midnight / Same Day badge in the hero banner is an easy way to confirm your start and end times match what you meant.

Handling Multiple Shifts or Split Schedules

If you work a split shift—such as 08:00 to 12:00 in the morning and 13:30 to 17:30 in the afternoon—you can either enter 08:00 to 17:30 with a 90-minute unpaid break right here to get 8.00 net hours, or use the Time Addition Calculator if you want to add up five separate days of shift lengths at the end of the week.

Checking Elapsed Time for Cooking, Travel, and Events

Time duration also comes in handy outside work: checking total flight or train travel time across time-zone-adjusted local schedules, timing long slow-cooker or smoking recipes that start at 10:00 PM and finish at 06:00 AM, or logging volunteer and study hours for school credit. Export the donut chart as a PNG or PDF anytime you need a clean visual record of your shift hours.

Keeping Daily Time Logs Accurate

Whether you are billing freelance client hours, verifying overtime on a pay stub, or timing a study schedule, logging exact start, end, and break minutes right as you finish prevents end-of-week guesswork. Keeping a clean record of net decimal hours ensures every hour you worked is counted fairly.