Work Hours Calculator
One Shift, Precisely Timed
For a single day's hours, the arithmetic looks simple until a shift crosses midnight or a break needs subtracting to the minute. This calculator takes a clock-in and clock-out time, removes any break, and reports the exact hours worked — correctly handling overnight shifts where the out time is technically earlier than the in time.
The Formula
When the clock-out time is earlier than the clock-in time, the calculator adds 24 hours to the span before subtracting the break, correctly resolving overnight shifts (e.g. 10:00 PM to 6:00 AM) instead of returning a negative duration.
Worked Examples
| Time In | Time Out | Break | Hours Worked |
|---|---|---|---|
| 9:00 AM | 5:30 PM | 30 min | 8.00 hrs (8h 0m) |
| 10:00 PM | 6:00 AM | 30 min | 7.50 hrs (7h 30m) — overnight shift |
At $18/hour, the 8-hour day example above pays $144.00 before taxes.
Where This Matters
- Daily shift logging — hourly employees confirming a single day's hours match what will appear on their next paycheck.
- Overnight and split shifts — restaurant, healthcare, and security shifts frequently cross midnight, where manual subtraction is most error-prone.
- Quick pay estimates — adding an hourly rate turns a logged shift directly into a dollar figure without a separate calculation.
How to Use This Calculator
- Enter the time in for the shift.
- Enter the time out for the shift.
- Enter break time in minutes (defaults to 0).
- Enter an hourly rate, optional, to see pay for the shift.
- Select Calculate to see total hours worked.
Related Calculations
Log an entire week at once with the Time Card Calculator, or price hours past a threshold with the Overtime Calculator.
Workplace Labor Hour Tracking and Legal Compliance
A work hours calculator tracks cumulative employee labor time across shifts, pay periods, and projects, converting raw time-card punch records into billable hours, regular straight-time hours, overtime hours, and mandatory unpaid rest break deductions. Accurate time tracking is required under employment labor laws (such as the Fair Labor Standards Act, FLSA, in the United States and the Working Time Directive in the European Union) to ensure compliant payroll administration and prevent wage-and-hour litigation.
Time-Card Decimal Conversion and Rounding Standards
Because payroll software processes labor hours in decimal format (e.g., 7.50 hours rather than 7 hours and 30 minutes), minutes must be converted by dividing by 60:
Under US Department of Labor (DOL) regulations (29 CFR § 785.48), employers may use standardized rounding intervals provided the rounding policy is neutral:
- The 7-Minute Rule (Quarter-Hour 15-Minute Rounding): Clock punches between 1 and 7 minutes round down to the nearest 15-minute mark; punches between 8 and 14 minutes round up to the next quarter-hour (e.g., 08:07 rounds to 08:00; 08:08 rounds to 08:15).
- 6-Minute Tenth-of-an-Hour Rounding: Time rounds to tenths of an hour (0.1 hr = 6 min; 08:03 rounds to 08:00; 08:04 rounds to 08:06 = 08.1 hr).
- Exact Minute-to-Minute Tracking: Modern biometric and mobile GPS time tracking logs exact timestamps without rounding.
Overtime Thresholds and Shift Premiums
- Standard FLSA Weekly Overtime: Non-exempt employees working over 40.0 hours in a defined 7-day statutory workweek receive overtime pay at 1.5 times their regular base hourly rate (time-and-a-half).
- Daily Overtime (California & Certain Jurisdictions): Hours worked beyond 8.0 hours in a single calendar workday must be compensated at 1.5x, and hours exceeding 12.0 in a single day (or beyond 8 hours on a 7th consecutive day) must be paid at 2.0x (double time).
- Mandatory Meal Break Deductions: Bona fide meal periods of 30 minutes or more where the employee is completely relieved of all duties are unpaid; short rest breaks of 5 to 20 minutes must be counted as paid work hours.
- Night Shift Differentials and Weekend Premiums: Additional hourly premiums (e.g., +$2.50/hr) applied to graveyard or weekend hospital shifts.
Step-by-Step Worked Calculation Example
Example: Calculating Weekly Payable Hours with Unpaid Meal Breaks
Problem: A manufacturing technician works Monday through Friday with the following daily shift records (all including a 45-minute mandatory unpaid lunch break): Monday (07:30 to 16:30), Tuesday (07:30 to 17:00), Wednesday (07:30 to 16:30), Thursday (07:30 to 17:30), and Friday (07:30 to 16:00). Calculate: (1) Total daily net hours worked; (2) Total weekly hours; and (3) Regular vs. Overtime hours (based on a 40-hour weekly threshold).
Step 1: Calculate daily gross hours and subtract 45-minute (0.75 hr) lunch:
- Monday: 9.0 gross hrs - 0.75 hr lunch = 8.25 net hours
- Tuesday: 9.5 gross hrs - 0.75 hr lunch = 8.75 net hours
- Wednesday: 9.0 gross hrs - 0.75 hr lunch = 8.25 net hours
- Thursday: 10.0 gross hrs - 0.75 hr lunch = 9.25 net hours
- Friday: 8.5 gross hrs - 0.75 hr lunch = 7.75 net hours
Step 2: Sum total net weekly hours:
Total Hours = 8.25 + 8.75 + 8.25 + 9.25 + 7.75 = 42.25 Hours
Step 3: Allocate regular straight-time and overtime hours:
Regular Hours = 40.00 Hours
Overtime Hours = 42.25 - 40.00 = 2.25 Overtime Hours (paid at 1.5x base wage)
Conclusion: The technician worked 42.25 net hours, comprising 40.00 regular hours and 2.25 overtime hours.
Common Payroll Time-Tracking Mistakes
- Failing to Deduct Lunch Breaks Consistently: Not deducting unpaid breaks inflates labor payroll costs by 2.5 to 5 hours per employee per week.
- Off-the-Clock Work Liability: Allowing employees to check emails or perform prep work before clocking in violates FLSA rules and creates back-wage liabilities.
Compensable Travel Time under the Portal-to-Portal Act
Under the federal Portal-to-Portal Act, standard daily home-to-work commuting time is not compensable working time. However, specific travel scenarios require full compensation:
- Travel Between Work Sites: Time spent traveling from one job site, client office, or service call to another during the workday is fully compensable work time.
- Special One-Day Out-of-Town Assignments: When an employee who regularly works at a fixed location is assigned to a one-day project in another city, travel time (excluding normal commute time) must be counted as work hours.
- Emergency Call-Back Travel: Travel time responding to after-hours emergency equipment repairs is compensable in many jurisdictions.
European Working Time Directive Compliance
In the European Union, the Working Time Directive (Directive 2003/88/EC) mandates a statutory ceiling of 48.0 maximum working hours per week (averaged over a reference period of 4 months), guaranteed minimum daily rest of 11 consecutive hours per 24-hour cycle, and mandatory 4 weeks of paid annual leave. Automated enterprise time-tracking systems monitor cumulative weekly hours to ensure compliance with international labor regulations.
Hospitality and Service Industry Tip Credit Accounting
Under federal FLSA Section 3(m), employers of tipped service staff may claim a statutory tip credit against minimum wage obligations. Employers must verify that employee tips combined with direct cash wages equal at least standard minimum wage across all recorded weekly work hours, paying mandatory tip-credit make-up differentials if deficits occur.