Working Days Between Two Dates: The Formula, Weekends, and Holidays
The correct way to count working days between two dates, why "divide by 7 times 5" approximations fail on short ranges, and how payroll and SLA deadlines depend on this.
Calculate hours worked from your clock-in and clock-out times, subtract breaks, and total up pay and overtime for accurate timesheets.
Switch on the days you worked. Breaks are unpaid minutes.
8 hrs 0 mins
8.00 decimal hours · 9:00 AM to 5:30 PM, minus 30 min break
Pay is hours × rate, before tax. On the weekly timesheet, hours above the overtime limit are paid at the overtime rate — use the limit and rate from your own contract.
Accurately tracking hours worked is essential for payroll processing, freelance client invoicing, and statutory labor compliance. Follow these simple steps to calculate your single shift or weekly total:
Choose Single shift to quickly determine billable hours for an individual day, or toggle Weekly timesheet to log Monday through Sunday work patterns with individual toggle switches for days off.
Input your punch-in and punch-out clock times. If your shift spans midnight (e.g., starting at 10:00 PM and finishing at 06:00 AM the following morning), the calculator automatically detects the overnight span and adds 24 hours.
Specify mandatory unpaid meal breaks in minutes (using quick buttons for 0, 15, 30, or 60 minutes). Unpaid break periods are subtracted directly from total elapsed shift time.
Expand Add hourly pay to calculate gross earnings. In weekly mode, set your contract's overtime threshold (e.g., standard 40 hrs/week) and overtime rate multiplier (such as 1.5× for time-and-a-half).
The engine converts all clock times into cumulative minutes from midnight (00:00 = 0, 23:59 = 1439). By computing the raw minute difference, handling overnight boundary wraps, subtracting non-compensable breaks, and converting to decimal hours, it guarantees cent-exact payroll fidelity.
// Elapsed Shift Duration
Raw Minutes = (End Hour × 60 + End Min) − (Start Hour × 60 + Start Min)
If (Raw Minutes < 0): Raw Minutes = Raw Minutes + 1440 // Overnight shift
Net Billable Minutes = Max(0, Raw Minutes − Unpaid Break Minutes)
Decimal Hours = Net Billable Minutes ÷ 60
// Gross Weekly Wages with Overtime
Regular Hours = Min(Total Weekly Decimal Hours, Overtime Threshold)
Overtime Hours = Max(0, Total Weekly Decimal Hours − Overtime Threshold)
Total Gross Pay = (Regular Hours × Base Rate) + (Overtime Hours × Base Rate × Overtime Multiplier)
Total elapsed time is 8 hours 30 minutes (510 minutes). Deducting a standard 30-minute unpaid lunch break leaves 8 hours 0 minutes (8.00 decimal hours). At ₹500/hr, gross earnings equal ₹4,000.00.
Shift spans midnight from 22:00 to 06:00. Adding 24 hours (1,440 minutes) resolves the negative delta to 8 hours 0 minutes. Minus a 30-minute meal break yields 7 hours 30 minutes (7.50 decimal hours). At ₹500/hr, gross earnings equal ₹3,750.00.
Employee logs 45.00 total hours against a 40-hour threshold at ₹500/hr base rate with 1.5× overtime. Base pay: 40 × ₹500 = ₹20,000. Overtime pay: 5 × (₹500 × 1.5) = ₹3,750. Total gross pay is ₹23,750.00.
Most enterprise payroll platforms (such as ADP, Workday, SAP, and QuickBooks) do not process minutes; they require time expressed as decimal hours. Understanding how sexagesimal minutes convert to decimal fractions prevents costly payroll discrepancies:
A common administrative error is recording 7 hours and 30 minutes as "7.30 hours". Because time uses base-60, 30 minutes is 30/60 = 0.50 of an hour. Paying an employee at 7.30 instead of 7.50 underpays them by 12 minutes (0.20 hours) for every single shift worked.
Under US Department of Labor FLSA regulations (29 CFR § 785.48(b)), employers may round punch times to the nearest 15-minute increment. Minutes 1 through 7 round down to the previous quarter hour, while minutes 8 through 14 round up to the next quarter hour (e.g., 8:07 rounds to 8:00; 8:08 rounds to 8:15).
Different jurisdictions impose strict legal standards regarding when work breaks must be paid versus unpaid, and how overtime premiums are earned:
Federal law requires overtime at 1.5× the regular hourly rate for all non-exempt hours in excess of 40 hours per workweek. Short rest breaks (5–20 mins) must be counted as compensable paid hours; bona fide meal periods (typically 30+ mins) where the employee is completely relieved from duty are non-compensable unpaid time.
Under Section 51 & 54 of the Factories Act 1948, standard working hours cannot exceed 9 hours in a day or 48 hours in a week. Any work performed beyond 9 hours/day or 48 hours/week entitles the worker to overtime wages at twice the ordinary rate of pay (2.0× multiplier).
Governed by the Working Time Regulations (1998) and EU Directive 2003/88/EC, workers cannot be forced to work more than an average of 48 hours per week (unless they sign an opt-out agreement). Employees working more than 6 consecutive hours are legally entitled to an uninterrupted 20-minute rest break.
Use this standard conversion table to translate exact clock minutes into decimal equivalents for timesheets, billing entries, and payroll software:
| Minutes | Exact Fraction | Decimal Hours (2 Decimals) | 15-Minute Rounding (FLSA) | Tenth of an Hour (0.1h) |
|---|---|---|---|---|
| 5 min | 5/60 | 0.08 hrs | 0.00 hrs (0 min) | 0.10 hrs (6 min) |
| 10 min | 10/60 | 0.17 hrs | 0.25 hrs (15 min) | 0.20 hrs (12 min) |
| 15 min | 15/60 | 0.25 hrs | 0.25 hrs (15 min) | 0.30 hrs (18 min) |
| 20 min | 20/60 | 0.33 hrs | 0.25 hrs (15 min) | 0.30 hrs (18 min) |
| 25 min | 25/60 | 0.42 hrs | 0.50 hrs (30 min) | 0.40 hrs (24 min) |
| 30 min | 30/60 | 0.50 hrs | 0.50 hrs (30 min) | 0.50 hrs (30 min) |
| 35 min | 35/60 | 0.58 hrs | 0.50 hrs (30 min) | 0.60 hrs (36 min) |
| 40 min | 40/60 | 0.67 hrs | 0.75 hrs (45 min) | 0.70 hrs (42 min) |
| 45 min | 45/60 | 0.75 hrs | 0.75 hrs (45 min) | 0.80 hrs (48 min) |
| 50 min | 50/60 | 0.83 hrs | 0.75 hrs (45 min) | 0.80 hrs (48 min) |
| 55 min | 55/60 | 0.92 hrs | 1.00 hrs (60 min) | 0.90 hrs (54 min) |
| 60 min | 60/60 | 1.00 hrs | 1.00 hrs (60 min) | 1.00 hrs (60 min) |
Quick answers about how this tool works.
Be the first to rate Hours Calculator
Search 282+ free calculators & tools — instant, private, no signup.
Tap a star to rate Hours Calculator.