Calculator
Time Clock Calculator App:Weekly Hours, Unpaid Breaks, Overnight Shifts, Punch Rounding and Overtime Over 40
Time clock calculator app: weekly hours from clock-in and clock-out times, less unpaid breaks, with overnight shifts, punch rounding and overtime over 40.
A time clock calculator app totals a workweek's hours from clock-in and clock-out times. The calculator on this page subtracts each shift's unpaid break, reads a clock-out earlier than the clock-in as the next day, splits regular hours from federal overtime over 40, and prices both at an hourly rate. It runs in the browser, with nothing to install.
FieldRanger, field service software that runs inside HubSpot, publishes the calculator among its free field service templates. It is free and needs no sign-up. The rules it applies, and the ones it leaves to the employer, are written out below with one sample week.
Shift hours, the workweek and the 40-hour overtime line
The calculation runs in three steps, each tied to a federal rule:
- Shift hours = (clock-out − clock-in − unpaid break minutes) ÷ 60.
- Week total = the sum of the shifts in one workweek. Regular hours are the first 40; overtime hours are the rest.
- Gross pay = regular hours × rate + overtime hours × rate × 1.5.
The workweek is not the calendar week. The Department of Labor defines it as "a fixed and regularly recurring period of 168 hours", seven consecutive 24-hour periods that may start on any day and at any hour. Overtime is due for hours over 40 in that workweek at not less than one and one-half times the regular rate, and "averaging of hours over two or more weeks is not permitted" (U.S. Department of Labor, Fact Sheet #23: Overtime Pay Requirements of the FLSA, revised October 2019). The calculator takes one workweek at a time and refuses a set of shifts that adds up to more than 168 hours.
Sample workweek: five shifts and 2.5 overtime hours
The sample is the calculator's default week at a sample rate of $25 an hour. It describes no real employee.
| Shift | Clock-in | Clock-out | Unpaid break | Hours |
|---|---|---|---|---|
| 1 | 08:00 | 16:30 | 30 min | 8.00 |
| 2 | 08:00 | 16:30 | 30 min | 8.00 |
| 3 | 08:00 | 16:30 | 30 min | 8.00 |
| 4 | 07:30 | 17:00 | 30 min | 9.00 |
| 5 | 07:00 | 17:00 | 30 min | 9.50 |
| Week | 42.50 (42:30) |
Forty of the 42.5 hours are regular and 2.5 are overtime. At $25 an hour the regular pay is $1,000.00. The overtime rate is $25 × 1.5 = $37.50, so 2.5 hours add $93.75, and gross pay is $1,093.75.
The calculator shows these figures for the default week, and its JSON endpoint, fieldranger.ai/api/tools/time-clock-calculator-app, returns the same totals for the same shifts with rounding=none and hourlyRate=25. The shifts go in as one line each: 08:00-16:30/30, where the number after the slash is the unpaid break in minutes.
Overnight shifts and 12-hour times
Times can be typed in 24-hour form (22:00) or 12-hour form with am or pm (10:00pm). A clock-out earlier than the clock-in is read as the next day: 10:00pm-6:30am/30 is an 8-hour overnight shift, and the result marks it "next day". The hours count in the workweek in which the shift is entered, so a shift that crosses the workweek's start is split by hand into the two weeks it touches.
Unpaid breaks and the 20-minute line
Every break entered is deducted as unpaid, so only a break that may lawfully go unpaid belongs in the field. The Department of Labor counts rest periods "of short duration, usually 20 minutes or less" as hours worked, while bona fide meal periods, "typically 30 minutes or more", need not be paid when the employee is completely relieved from duty (Department of Labor, Fact Sheet #22: Hours Worked Under the FLSA, revised July 2008).
The calculator flags the case. A shift entered as 08:00-16:30/15 returns 8.25 hours with a note that a break of 20 minutes or less counts as hours worked; the entry should be 08:00-16:30 with no break unless the 15 minutes was a meal period free of duty.
Punch rounding under 29 CFR 785.48(b)
Rounding is optional, to the nearest 5, 6 or 15 minutes. The regulation accepts recording start and stop times to the nearest 5 minutes, or to the nearest tenth or quarter of an hour, provided the practice does not, "over a period of time", fail to pay employees for all the time they actually worked (29 CFR 785.48, Use of time clocks, checked November 13, 2026).
The effect on one shift is easy to see. A shift punched 07:58 to 16:37 with a 30-minute meal is 8.15 hours unrounded (8:09). Rounded to the quarter hour, the punches become 08:00 and 16:30 and the shift becomes 8.00 hours. Those 9 minutes went to the employer, so the same rule has to round other punches the employee's way for the practice to average out.
Daily overtime in California
The calculator applies the federal weekly rule only. Some states add daily rules on top of it. In California, a nonexempt adult is paid one and one-half times the regular rate for hours over 8 up to 12 in a workday and for the first 8 hours on the seventh consecutive day of a workweek, and double time over 12 in a workday and over 8 on that seventh day (California Department of Industrial Relations, Labor Commissioner's Office, Overtime FAQ, checked November 13, 2026).
The two rules part ways on long days. Four 10-hour shifts, 07:00-17:30 with a 30-minute meal, total 40 hours: the calculator returns no overtime. Under California's daily rule the same week carries 2 overtime hours a day, 8 in all (a hand calculation). The Labor Commissioner's FAQ also describes an alternate method under most Industrial Welfare Commission wage orders for alternative workweeks of four 10-hour or three 12-hour days, so the California answer depends on whether such a schedule was adopted (DIR, Overtime FAQ). In the default sample the two rules agree: the 2.5 hours over 8 on days four and five are also the 2.5 hours over 40.
The calculator also leaves the regular rate to the user. Under the FLSA it includes all remuneration for employment except payments the Act excludes, such as discretionary bonuses and gifts on special occasions (DOL, Fact Sheet #23); the calculator uses the hourly rate entered, and exempt employees are outside it.
Job hours in FieldRanger
FieldRanger records the punches; it does not run payroll. Technicians clock in and out with time logged against each job, and clock-ins and clock-outs record where the technician was, so hours match job sites. The GPS time tracking app page covers both features. The weekly totals download as CSV or Excel for the payroll provider, which applies the federal and state rules above.
The trades that bill by the job use the same record twice. An HVAC changeout sized with the HVAC calculator and ducted with the duct calculator ends as hours logged against its jobs, and revenue reports show job revenue and margin by service type.
Frequently asked questions
How to calculate hours worked from a time card?
For each shift, subtract the clock-in from the clock-out and then subtract any unpaid meal break. Add the shifts in the workweek; hours over 40 are overtime under federal law.
How is overtime calculated for 42.5 hours at $25 an hour?
Forty regular hours at $25 come to $1,000.00 and 2.5 overtime hours at $37.50 come to $93.75, so gross pay is $1,093.75.
Are 15-minute breaks paid?
Yes, under the FLSA. The Department of Labor counts rest periods of about 20 minutes or less as hours worked; only a bona fide meal period with the employee relieved from duty may go unpaid.
How are overnight shifts calculated on a time clock?
A clock-out earlier than the clock-in is the next day: 10:00pm to 6:30am with a 30-minute meal is 8 hours.
Is rounding time clock punches legal?
Under 29 CFR 785.48(b), rounding to the nearest 5 minutes, tenth or quarter hour is accepted if, over time, employees are paid for all the time they actually work.
Does California require daily overtime?
Yes. Hours over 8 in a workday are paid at one and one-half times the regular rate, and hours over 12 at double time, as the Labor Commissioner's Overtime FAQ sets out.
Forty hours, then the payroll run
The sample week goes to payroll as 40 regular hours, 2.5 overtime hours and $1,093.75 gross before deductions, and every figure in it traces to a clock-in and a clock-out. Clock-ins logged against jobs are the subject of the GPS time tracking app page; the remaining calculators are among the free field service templates. A week of job hours can be recorded in HubSpot during the 14-day trial, which needs no card (Start free trial), and pricing lists the plans per technician.
FieldRanger runs field service inside HubSpot
Estimates, scheduling and dispatch, a technician app and invoicing on the HubSpot records sales already keeps. Every plan starts with a free trial.
Book a demo