Payroll & HR software,
verified like a policy manual.

Employee Cost Calculator →

Payroll · Policy-manual review

Time card calculator: hours, breaks, overnight shifts, and overtime

A detailed timecard calculator specification covering clock math, breaks, overnight work, rounding, weekly overtime, corrections, and exports.

Verified 2026-08-13

At a glance

Verdict

A timecard calculator should preserve actual clock times, subtract only verified unpaid breaks, handle overnight shifts, total each workweek, and show every correction. It may estimate federal overtime after 40 hours for a covered nonexempt employee, but it cannot infer exemption, compensable time, the regular rate, or state daily-overtime rules from timestamps alone.

Is it right for you?
  • Set the employer workweek before entering time
  • Capture date, clock-in, clock-out, and actual unpaid break
  • Handle overnight shifts and daylight-saving transitions explicitly
  • Keep raw time, rounding result, correction reason, and approver
  • Separate total hours from legally payable regular and overtime earnings
Filed under
Payroll · last verified 2026-08-13

§1Inputs and calculation order

  1. Convert each timestamp to a date, time, and time zone.
  2. If clock-out is on the next day, attach the correct date rather than adding 24 hours blindly.
  3. Subtract only the recorded unpaid-break duration.
  4. Keep unrounded duration as the source result.
  5. Apply an approved rounding rule, if any, and display the difference.
  6. Sum hours by the defined workweek.
  7. Send weekly totals and pay codes to the wage calculation.

§2Worked clock example

Clock-in 8:07 a.m., clock-out 5:02 p.m., with a 32-minute unpaid meal. Elapsed time is 8 hours 55 minutes; subtracting 32 minutes leaves 8 hours 23 minutes, or 8.3833 hours before any approved rounding.

Display both hours-and-minutes and decimal hours. Converting "23 minutes" to .23 hours is wrong; 23 ÷ 60 is approximately .3833.

§3Overnight and daylight-saving shifts

A 10 p.m. to 6 a.m. shift spans two calendar dates. Store full timestamps. When clocks change, local display time can repeat or skip an hour, so use a time zone and preserve the source event.

Do not split the shift at midnight unless reporting or workweek rules require it. If the workweek boundary falls inside a shift, allocation needs a documented payroll rule.

§4Overtime is a wage calculation, not a timestamp label

The FLSA generally requires covered nonexempt employees to receive overtime after 40 hours in a workweek at not less than one and one-half times the regular rate [U.S. Department of Labor, 2026]. State rules and exemptions can differ.

Nondiscretionary bonuses and other remuneration may affect the regular rate [U.S. Department of Labor, 2026]. The timecard tool should export hours and pay codes rather than assume hourly rate × 1.5 always completes the calculation. Our guide to the overtime rate works through the regular rate when a week holds two pay rates, a bonus or a shift differential.

The hours themselves create the obligation. Once a nonexempt employee passes 40 in a workweek, a private employer owes the premium in cash and cannot settle it with time off instead; our comp time guide sets out the regulation behind that limit and the arrangements that do work.

Travel is where a timestamp runs out of road. A clock-in stamped on arrival records when the employee reached the site, and nothing about whether the drive there was compensable. The federal rules work trip by trip, and our travel time pay guide sets out each scenario with the regulation behind it.

§5Corrections and audit trail

Employees need a route to report missed punches and incorrect breaks. Store original entry, proposed change, reason, approver, timestamp, and final value. Never erase the source event.

DOL guidance allows employers to use any timekeeping method as long as records are complete and accurate [U.S. Department of Labor, 2026]. An automatic meal deduction can create errors if an employee worked through the meal and cannot correct it.

§6Frequently asked questions

What is 30 minutes on a time card? Thirty minutes is half an hour, written as 0.50 in decimal hours. It is not 0.30: decimal hours divide minutes by 60. Check whether the payroll system expects clock notation such as 0:30 or a decimal number. Source.

How do I calculate my timecard? For each shift, subtract the starting time from the finishing time and account for an overnight date change. Subtract only time that is genuinely unpaid, then add the shift totals for the workweek. Keep the actual hours and overtime calculation separate. Source.

How do I convert minutes to decimal hours? Divide minutes by 60; do not move the decimal point.

Should breaks always be deducted? Only according to actual compensable-time facts and applicable law. Do not assume a scheduled meal was taken.

Can the calculator decide exempt status? No. Classification requires job and pay facts outside the timecard.

Should overtime be totaled by pay period? Federal overtime generally uses a workweek, even when payroll covers multiple weeks.

That situation deserved its own writeup: Annual income calculator.

A closely related resource: Pay stub example.

What to do next

Most payroll tools offer a free trial or free setup month. We recommend testing 2–3 options with a real payroll run before committing to an annual contract.

Reader note

Was this section of the handbook useful?

HP

Owen Zhang

Publisher of HRPay Pick

See how these guides are made on the About page.