ThisCalculator

Date and time

Duty Hours Calculator: Track Work & Overtime

Updated · Standard formula, shown below

Total duty time 7:30:00 h:mm
Net work time
7:30:00 h:mm
Result
Overtime
0:00 h:mm
Result
Shift start (HH:MM, 24h)
9
You entered

Duty Hours Calculator: Track Work & Overtime

A duty hours calculator works out total time on duty from a start and end time, then subtracts breaks to give net working hours and any overtime beyond a set threshold. You enter the shift start, shift end, and break duration, and it returns total duty hours, net work hours, and overtime in hours and minutes. This is the same math used in payroll, residency tracking, and labor compliance, so the results are precise to the minute.

Formula

The calculator uses simple time arithmetic. Total duty time in minutes is:

Duty minutes = (End time − Start time) − Break minutes

Where:

  • Start time – clock time you begin duty, in 24-hour format (e.g., 09:00 = 9 AM)
  • End time – clock time you finish duty, in 24-hour format (e.g., 17:00 = 5 PM)
  • Break – unpaid or non-duty minutes in the middle of the shift
  • Overtime threshold – the number of duty hours after which extra time counts as overtime (often 8 hours)

Net work time equals duty time (breaks are already removed). Overtime is the positive difference between net work time and the threshold. If the shift is shorter than the threshold, overtime is zero.

Worked Example

Using the default values: start 09:00, end 17:00, break 30 minutes, threshold 8 hours.

  1. Total elapsed time: 17:00 − 09:00 = 8 hours = 480 minutes
  2. Subtract break: 480 − 30 = 450 minutes = 7 hours 30 minutes
  3. Net work time: 7 hours 30 minutes
  4. Overtime: 7.5 hours − 8 hours = −0.5 hours, so overtime = 0

The calculator shows duty time 7:30, net work 7:30, overtime 0:00. If the shift ran to 18:00 with the same break, net work would be 8:30 and overtime 0:30.

When to Use a Duty Hours Calculator

This tool is useful in several real situations:

  • Hourly employees checking their own timesheet before submitting it
  • Managers or schedulers verifying that a shift plan stays under a legal or contractual limit
  • Residents or trainees tracking weekly duty hours against accreditation caps
  • Freelancers billing a client for a day that included a lunch break
  • Anyone comparing a planned schedule against a standard 8-hour day

The key distinction is between elapsed time (from punch-in to punch-out) and duty time (elapsed minus breaks). Many disputes come from confusing the two.

Common Mistakes and How to Avoid Them

The most frequent error is entering times in 12-hour format without converting. “5:00� means 5 AM in this calculator, not 5 PM. Always use 24-hour time: 5 PM becomes 17:00. Another mistake is forgetting to subtract breaks – a 9-hour shift with a 1-hour lunch is only 8 duty hours. Rounding is also a trap: do not round each minute to the nearest quarter hour before subtracting; compute in minutes first, then convert to hours and minutes at the end.

Overnight shifts need special care. If you start at 22:00 and end at 06:00 the next day, a simple subtraction gives a negative number. In that case, add 24 hours to the end time before subtracting: (6 + 24) − 22 = 8 hours. This calculator does not auto-detect overnight shifts, so you must adjust the end time yourself (e.g., enter 30:00 for 6 AM the next day).

Overtime Rules and Thresholds

Overtime is not a universal number. Common thresholds include:

  • 8 hours per day (standard in many industries)
  • 40 hours per week (often the weekly trigger)
  • 12 hours per day (healthcare and emergency services)
  • 80 hours per week (common residency limit)

This calculator lets you set any threshold, but the result is only a mathematical comparison. Actual overtime pay rates, grace periods, and averaging rules come from your employer, contract, or local law – the calculator does not apply them. For example, some rules only count overtime after the first 15 minutes past the threshold, or they average hours over two weeks. Check the specific rule before relying on the number.

How to Read the Results

The first output, Total duty time, is the headline number. It is the full time you were on duty, including breaks? No, it already excludes breaks. The second output, Net work time, is identical in this version because breaks are subtracted once. The third output, Overtime, shows only the excess above the threshold. If you see 0:00 for overtime, the shift was at or below the threshold. If you need weekly totals, run each day separately and add the minutes manually or use a spreadsheet.

All results are shown as h:mm (hours and minutes). A result of 7:30 means 7 hours and 30 minutes, not 7.3 hours. To convert to decimal hours for payroll, divide minutes by 60: 7:30 = 7.5 hours.

Limits of the Formula

This calculator assumes a single continuous shift with one break. It does not handle:

  • Multiple breaks of different lengths (enter the total break time)
  • Split shifts (two separate duty periods in one day)
  • On-call time where you are at home but available
  • Travel time to and from the worksite
  • Rounding rules that some payroll systems apply (e.g., to the nearest 6 minutes)

For those cases, you need a more detailed time-tracking system. The formula also assumes the end time is after the start time on the same day; overnight shifts require the +24 hour adjustment described above.

Frequently Asked Questions

How do I enter a shift that crosses midnight? Add 24 to the end hour. For a shift from 10 PM to 6 AM, enter start as 22:00 and end as 30:00. The calculator will correctly show 8 hours minus your break.

Does this include unpaid lunch breaks? Only if you subtract them. Enter your total break minutes in the break field. If your lunch is unpaid but you were not relieved of duty (e.g., you stayed at your desk), it may legally count as duty time – check your local rules.

What is the difference between duty time and work time? In this calculator, they are the same because breaks are removed. In some regulations, duty time includes all time you are required to be at the workplace, even if inactive, while work time may exclude certain waiting periods. Use the definition that matches your situation.

Can I use this for weekly overtime? Yes, but you must run it for each day and add the overtime minutes yourself. The calculator does not sum across days. For weekly rules, also check if the threshold applies per day or per week.

Why does my timesheet show 8.0 hours but I get 7:30? Your timesheet may be rounding to the nearest quarter hour, or it may not subtract the break. Ask your payroll department which rule they use. The calculator gives exact minutes, which is the safer basis for a dispute.

Is 24-hour time required? Yes. The calculator expects HH:MM in 24-hour format. If you only have 12-hour times, convert by adding 12 to PM hours (except 12 PM stays 12).

Related

Formula used
in t | Shift start (HH:MM, 24h) | - | 9 | 0
in d | Shift end (HH:MM, 24h) | - | 17 | 0
in b | Break (minutes) | min | 30 | 0
in o | Overtime threshold (hours) | h | 8 | 0
out duty | Total duty time | h:mm | (d - t) * 60 - b | time
out net | Net work time | h:mm | (d - t) * 60 - b | time
out ovt | Overtime | h:mm | max((d - t) * 60 - b - o * 60, 0) | time

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.