Utilvo Studio100% Client-Side Suite
HomeCalculatorsHours Calculator
Time Card, Payroll & Duration Engine

Hours Calculator: Work Hours, Timesheet & Duration

Calculate elapsed hours, decimal work hours, overtime, and unpaid break deductions between any two times or dates. Perfect for FLSA time cards, freelancer billing, and overnight shifts.

Loading Hours Calculator...

Clock Time vs. Decimal Hours: The Payroll Standard

Why converting sexagesimal minutes (base-60) into decimal hours (base-10) is mandatory for accurate payroll.

Standard clocks operate on the ancient Babylonian sexagesimal system (base-60), where one hour contains 60 minutes. However, modern financial ledgers, billing software, and enterprise payroll systems (such as ADP, Gusto, and Workday) operate strictly on the decimal system (base-10).

The Common Payroll Trap: 7 Hours 30 Minutes ≠ 7.30 Hours!

A frequent and costly error occurs when an employee works 7 hours and 30 minutes and enters 7.30 into timesheet software. In reality:

7 hrs + (30 mins / 60) = 7 + 0.50 = 7.50 Decimal Hours

Entering 7.30 instead of 7.50 underreports work by 12 minutes per shift (0.20 hrs). Over a full working year (250 shifts), an employee would unintentionally forfeit 50 full hours of pay.

Clock Time to Decimal Hours

H_decimal = Hours + (Minutes / 60) + (Seconds / 3600)

Divide total elapsed minutes by 60 and add to full hours. Seconds are divided by 3,600 for sub-minute precision.

Decimal Hours to Minutes

Minutes = Decimal Remainder × 60

Take the fraction after the decimal point (e.g. 0.75 in 8.75) and multiply by 60: 0.75 × 60 = 45 minutes.

Minutes to Decimal Hours Conversion Matrix

Official reference table for 5-minute increments and the FLSA 7/8-minute rounding principle.

Use this conversion table to quickly look up decimal equivalents for any common minute interval without manual arithmetic.

MinutesExact FractionDecimal (2 Places)Decimal (4 Places)Common Shift Usage
5 mins5 / 600.08 hrs0.0833 hrsGrace period clock-in window
10 mins10 / 600.17 hrs0.1667 hrsShort paid rest break
15 mins1 / 40.25 hrs0.2500 hrsStandard quarter-hour rounding increment
20 mins1 / 30.33 hrs0.3333 hrsStatutory paid rest break
30 mins1 / 20.50 hrs0.5000 hrsStandard unpaid lunch deduction
45 mins3 / 40.75 hrs0.7500 hrsExtended meal break
60 mins1 / 11.00 hrs1.0000 hrsFull billable hour
The FLSA 7/8-Minute Rounding Rule (29 CFR § 785.48(b))

Under the United States Department of Labor Fair Labor Standards Act (FLSA), employers are permitted to round employee time to the nearest 15-minute quarter hour (0.25 hr). To remain legally compliant, the rounding must be neutral and bidirectional:

1 to 7 Minutes: Round DownTime between 1 and 7 minutes past the quarter hour rounds down to the preceding 15-minute mark (e.g., 8:07 AM rounds to 8:00 AM).
8 to 14 Minutes: Round UpTime between 8 and 14 minutes past the quarter hour rounds up to the next 15-minute mark (e.g., 8:08 AM rounds to 8:15 AM).

Federal regulations strictly prohibit one-way rounding that consistently favors the employer, which constitutes unlawful wage theft.

Overnight Shifts: The Midnight Rollover Algorithm

How our calculation engine resolves shifts that start in the evening and end the following morning.

When calculating shifts that cross midnight—such as hospital night shifts, security graveyard patrols, or overnight logistics (e.g., 10:00 PM to 6:30 AM)—elementary subtraction T_end - T_start yields a negative result:

06:30 - 22:00 = 6.5 - 22.0 = -15.5 Hours (Invalid Negative Duration)

Our Hours Calculator automatically implements the 24-Hour Modulo Rollover Algorithm:

ΔT = (T_end < T_start) ? (T_end + 24) - T_start : T_end - T_start

Applying the algorithm to 10:00 PM (22:00) to 6:30 AM (06:30):
(6.5 + 24) - 22.0 = 30.5 - 22.0 = 8.50 Hours (8 hours 30 minutes)

Overtime Pay & Unpaid Meal Deductions

Understanding regular hours, time-and-a-half (1.5x), and meal break compliance.

Unpaid Lunch vs Paid Rest Breaks

Under standard employment laws:

  • Meal Breaks (30+ mins): Typically unpaid if the employee is entirely relieved of all operational duties. These hours are subtracted from the gross total.
  • Rest Breaks (5–20 mins): Classified as compensable work time and cannot be docked from timesheet pay.
Net Hours = Gross Elapsed Hours - Unpaid Break Hours
Overtime Pay (Time-and-a-Half)

Overtime compensation rules vary by jurisdiction:

  • Weekly Threshold (FLSA): Any hours worked beyond 40 hours in a 7-consecutive-day workweek must be paid at a minimum of 1.5× the regular rate.
  • Daily Threshold (e.g. California): Any hours over 8 up to 12 in a single workday are paid at 1.5×, and hours exceeding 12 are paid at 2.0× (double time).
Gross Pay = (Regular Hours × Rate) + (Overtime Hours × 1.5 × Rate)

Worked Timesheet & Payroll Examples

Three real-world shift scenarios solved step-by-step with formulas and deductions.

Scenario 01

Standard Day Shift + Lunch

Clock In: 08:30 AM

Clock Out: 05:15 PM

Unpaid Lunch: 45 minutes

Gross: 8h 45m = 8.75 hrs

- Lunch: 45m = 0.75 hrs

Net: 8.00 Decimal Hours

At a $25.00/hr pay rate, gross earnings equal 8.00 × $25.00 = $200.00.

Scenario 02

Overnight Graveyard Shift

Clock In: 10:15 PM (Mon)

Clock Out: 06:45 AM (Tue)

Unpaid Break: 30 minutes

Gross: 8h 30m = 8.50 hrs

- Break: 30m = 0.50 hrs

Net: 8.00 Decimal Hours

Automatic midnight rollover: (6.75 + 24) - 22.25 = 8.50 gross hours.

Scenario 03

Multi-Day Business Project

Start: Fri 02:00 PM

End: Tue 11:00 AM

Shift: 08:00 to 17:00 (No W/E)

Fri: 14:00-17:00 = 3 hrs

Sat-Sun: Excluded (0h)

Mon: Full day = 9 hrs

Tue: 08:00-11:00 = 3 hrs

Total: 15.00 Business Hours

Total calendar duration is 93 hrs, but billable working SLA time is strictly 15 hours.

Engine Architecture & Privacy Guarantee

Zero telemetry, client-side execution, and millisecond-accurate mathematical precision.

100% Client-Side Privacy

All timesheet timestamps, work hours, and wage calculations remain strictly in your browser. No data is stored or transmitted over any network.

Configurable Decimal Precision

Configure output precision from 0 to 6 decimal places to match your company’s internal accounting and ERP guidelines.

Dual Calculation Engines

Toggle seamlessly between Absolute Continuous Duration and Constrained Business Shift Hours with weekend filtering.

Frequently Asked Questions

Everything you need to know about midnight rollovers, break deductions, and time formats.

Q:How does the calculator handle overnight shifts that cross midnight?

The tool automatically detects when an end time is earlier than the start time and rolls the calculation into the next day.

Q:Can I subtract break times or meal hours from the total work duration?

Yes, an optional break field allows you to enter minutes or hours that are deducted from the gross total.

Q:What input formats are accepted for start and end times?

The calculator supports 12-hour AM/PM and 24-hour military time formats, adjusting calculations accordingly.

Q:Does the calculator account for daylight saving time changes?

No, it computes raw clock-time differences only. Calendar-based or timezone-aware calculations require manual adjustment.