TodayMonday, October 5, 2026
Time & time zones · practical guide

Work Hours, Breaks and Overnight Shifts: Calculate Elapsed Time

Written and maintained by Navjeet Kamboj4 minute readDate and time methods
Navjeet Kamboj
Written and maintained by Navjeet Kamboj
Author & editor · Age Calculator Lab

What this guide covers

Calculate a dated shift, deduct the break you enter and interpret decimal hours. Includes overnight examples, input validation and daylight-saving limitations.

Record a complete shift interval

A shift has a start instant and an end instant. Enter a full date and time for each boundary, especially when the work crosses midnight. A clock time such as 6 AM does not say whether the shift ended today, tomorrow or on another date.

The Work Hours & Breaks Calculator interprets these inputs in the browser’s local time zone. Check that zone in the result. If the shift occurred somewhere else, establish its actual instants before using a local-input tool. The calendar time-zone selector for date-only pages does not relocate these local date-time inputs.

Separate gross elapsed time and net work time

Gross elapsed time is the duration from the start instant to the end instant. Net work time is that duration minus the break amount you enter. The calculator does not infer which breaks count as paid work or which policy an employer applies.

For a shift from 9 AM to 5 PM on the same ordinary eight-hour interval, gross time is 480 minutes. Deducting a 30-minute break leaves 450 minutes, or 7 hours 30 minutes. If no deduction applies to the calculation you need, enter zero break minutes.

Work through an overnight example

Take a start of January 10, 2027 at 10 PM and an end of January 11 at 6 AM. With no clock transition in the relevant zone, the elapsed interval is eight hours. A 30-minute deduction gives a net interval of seven and a half hours.

StepMinutesHours interpretation
Gross interval4808 hours
Entered break300.5 hour
Net interval4507 hours 30 minutes
Net decimal hours450 ÷ 607.5 hours

Entering January 10 at 6 AM as the end would put the end before the start. The tool rejects that range. It does not automatically add a day because doing so could hide an incorrect date.

Convert minutes to decimal hours carefully

Divide total minutes by 60 to obtain decimal hours. Thirty minutes is 0.5 hour, fifteen minutes is 0.25 hour and forty-five minutes is 0.75 hour. Clock notation and decimal notation use different bases.

Seven hours thirty minutes is 7.5 decimal hours. It is not 7.30 decimal hours, which represents seven hours and eighteen minutes. When moving a result into a spreadsheet or form, check whether that field expects a duration written as hours and minutes or a decimal quantity.

Validate the break deduction

A break cannot be negative in this tool and cannot exceed the gross shift interval. Those inputs produce an error rather than a misleading negative net-work result. The break is an entered duration, not a second start-and-end interval.

If the record contains several deductions, add their durations first in Add Time Durations, then enter the combined minutes. Avoid counting the same break twice. If two recorded breaks overlap, reconcile their boundaries before adding them as independent amounts.

Account for clock transitions

Local clocks can skip forward or repeat an hour during a time-zone transition. A shift whose clock labels look eight hours apart can have a different elapsed duration. The full dates allow the browser to apply its available zone rules to the interval.

A repeated local time can still be ambiguous because the same label may refer to two instants. A skipped label may not correspond to a real instant at all. For those cases, verify the actual UTC timestamps or recorded offsets rather than relying solely on local clock labels. Read the time-zone guide for the distinction.

Keep compensation rules outside the arithmetic

This calculator reports a duration after the deduction you enter. It does not establish an overtime threshold, an hourly rate, a rounding policy, a statutory break requirement or an entitlement to compensation. Those questions depend on the applicable rules and the underlying work record.

If a system rounds times, keep the original boundaries and its rounding method separately. A duration rounded before a deduction may differ from one rounded after it. Do not silently substitute this tool’s exact elapsed minutes for the method required by another system.

Check and keep the result receipt

Retain the start date-time, end date-time, browser zone, gross minutes and deducted break minutes. Compare the net total with the same subtraction in seconds or minutes. These inputs make it possible to investigate a discrepancy without guessing at the shift.

For a plain interval without deductions, use Hours Between Dates. For subtracting two already-known amounts, use Subtract Time Durations. Future and historical shifts use their actual entered dates; a new calendar year does not require replacing the arithmetic with an annual lookup list.

Frequently asked questions

Does the tool decide whether a break is paid?

No. It deducts only the duration entered for the calculation you need.

Can the shift cross midnight?

Yes. Enter the next calendar date for its ending time.

Does the tool automatically add a day?

No. An end before the start is rejected.

Why are 7h 30m and 7.30 hours different?

Clock minutes use a base of 60. Thirty minutes is half an hour, so the decimal value is 7.5.

Can a clock change alter the result?

Yes. Local date-time subtraction follows the browser zone’s available rules. Ambiguous repeated times need an exact recorded instant.

Sources and further reading

These sources explain the calendar, time-zone or published schedule conventions discussed here. Worked examples use the lab's stated calculation rules.

IANA: time-zone database and rule updatesECMAScript: time values and the Date time model

Related guides

Keep exploring

View the tool library
Navjeet Kamboj, author at Age Calculator Lab
About the author

Navjeet Kamboj

Author & editor · Age Calculator Lab

Navjeet Kamboj is the author and editor of Age Calculator Lab. He focuses on making age, date, milestone and planning calculations easier to understand through clearly explained methods, practical examples and responsible limitations.