Timesheet Calculator
Add up hours worked from clock-in and clock-out times and get gross pay, including overtime over 40 hours.
Last updated · View algorithm, constants and default inputs (JSON)
Regular versus overtime hours
About this calculator
Enter shift start and end in 24-hour HH:MM format; an earlier end means the shift crosses midnight. The same unpaid break is subtracted from each shift. A fixed 40-hour weekly threshold and your entered multiplier are used as a US-style example, not a legal wage calculation. Pay is shown in USD.
Worked example
calculated with the default values below
Clock-in time (HH:MM) 09:00 · Clock-out time (HH:MM) 17:30 · Unpaid break 30 min · Days in the pay week 5 days · Hourly rate 20 $ · Overtime multiplier 1.5 × Total hours 40.00 h · Gross pay 800.00 $ · Hours per shift 8.00 h · Regular hours (first 40) 40.00 h · Overtime hours 0.00 h
General background references
Disclaimer
These calculators give general date results. Public holidays, working-day conventions and time-zone rules are set locally and change, so confirm against the official calendar for anything legally or contractually binding.
Implementation source
This record describes the implementation used by this page. It is not independent validation. External references, when available, support only the stated formula or definition; estimates and custom rules retain their own assumptions.
Formula and variables
H = max(0, ((b − a) mod 1440) − B) ÷ 60 × n; P = R × min(H,40) + R × k × max(H−40,0)
- a
- Start (minutes after midnight)
- b
- End (minutes)
- B
- Daily break (min)
- n
- Workdays
- R
- Hourly rate
- k
- Overtime multiplier
Overtime threshold is fixed at 40 hours; times are parsed as HH:MM or HH.MM.
Frequently asked questions
How do I handle unpaid breaks?
Subtract them per shift rather than in total, because the arithmetic differs if your shifts have unequal lengths. Then check the policy: some employers deduct a fixed break whether or not it was taken, and some require breaks over a threshold. Getting the rule in writing before you dispute a payslip saves a lot of time.
Why do payroll systems ask for hours in decimals?
Because decimal time is what the payroll arithmetic needs. Thirty minutes is 0.5 of an hour, fifteen is 0.25, and seven hours thirty minutes is 7.5 — not 7.30. Entering 7.30 instead of 7.5 understates the shift by twelve minutes, and across a fortnight that is a real amount of pay.