Hours Calculator

Hours Between Times

Start Time

End Time

Time Difference

9 hours
9
Hours
540
Minutes
32,400
Seconds
9.00
Decimal Hours

Hours Between Two Dates

Start Date & Time

End Date & Time

Total Duration

1 day, 9 hours
1
Days
33
Total Hours
1,980
Total Minutes
118,800
Total Seconds

Work Hours Calculator

Work Schedule

Pay Calculation

Work Hours & Pay Summary

7.00
Daily Hours
35.00
Weekly Hours
151.67
Monthly Hours
1,820
Yearly Hours
$105.00
Daily Pay
$525.00
Weekly Pay
$2,275.05
Monthly Pay
$27,300
Yearly Pay

Time Information & Reference

Hours in Different Time Periods

Period Hours
Hour1
Day24
Week168
Month (30 days)720
Month (31 days)744
Month (average)730.5
Year (365 days)8,760
Year (366 days)8,784
Decade (average)87,660
Century876,600

Clock Format Information

12-Hour Clock

Uses numbers 1-12 with AM/PM designation. AM (ante meridiem) means "before midday" and PM (post meridiem) means "after noon".

24-Hour Clock

Uses numbers 0-23, where 00:00 is midnight and 12:00 is noon. Also known as military time.

Current Time

--:--:--
Loading...

More Time & Date Tools

Hours Calculator: Quick Framework

1. Core Tasks

  • Simple span: end - start (adjust if crosses midnight).
  • Between dates: diff ms → days/hours/minutes.
  • Work hours: (end − start − breaks) × days/week.

2. Flow

  1. Normalize times → 24h internal.
  2. Compute raw ms.
  3. Subtract unpaid breaks.
  4. Aggregate (daily → weekly → monthly → yearly).

3. Payroll Logic

  • Regular = min(total, 40h).
  • OT = max(0, total − 40h) × multiplier.
  • Annual ≈ weekly × weeks/year.

4. Sanity Checks

  • End before start → assume overnight +1 day.
  • Break >= 0 & break < shift length.
  • Daily hours not negative after subtraction.

5. Shortcuts

  • Round only at display layer (keep ms internally).
  • Batch compute weekly sums after per-row update.
  • Prefill subsequent days from first day for fixed shifts.

6. Pitfalls

  • AM/PM 12 edge (12 AM=00, 12 PM=12).
  • Ignoring daylight saving in multi-day spans (consider timezone libs if critical).
  • Double subtracting breaks on overnight shifts.

7. Micro Examples

09:00-17:00 break 1h → 7.00h

Week: 7h ×5 = 35h (no OT)

45h week @1.5 OT → 40 + 5×1.5 = 47.5 pay-hours

8. Mini FAQ

  • Overnight shift? Add a day if end ≤ start.
  • Partial hours? Keep decimal for payroll exports.
  • Custom OT? Adjust threshold & multiplier.

9. Action Tip

Store raw ms per row; all summary views derive from that single source for consistency.