Dates & workdays
Hours Calculator: Work Hours, Payroll Decimal & Multi-Day Spans
Calculate hours between two times or across two dates. Overnight shifts, break deduction, payroll decimal format, multi-day spans. Free, runs locally.
By Jeff Beem
Updated
Mode
7 Hours and 30 Minutes
Decimal: 7.50 h
Minutes: 450
Reference
Decimal hours
Payroll often uses decimal hours:
e.g. 30 min → 0.5; 8h 30m → 8.5.
Overnight & multi-day
Time range: end before start rolls to the next day.
Date span: full difference between explicit start and end timestamps.
Work Hours, Payroll Decimals & Across-Midnight Logic
This calculator supports same-day or overnight time ranges (with optional break deduction) and multi-day spans between two dates and times. The Information Hub in the calculator card above explains the decimal-hours formula and across-midnight logic.
What You Get
Decimal hours & overnight
Hours Calculator: Time Between Two Times, Work Hours & Payroll Decimal
Calculate total hours between two times or across two dates. Supports overnight shifts, break deduction, payroll decimal format, and multi-day spans. Free, runs locally, no sign-up.
What This Calculator Does
- Who it helps:Hourly workers, freelancers, payroll staff, and project managers who need accurate time totals in decimal format.
- What it outputs:Total elapsed time in hours:minutes, decimal hours (e.g., 8 h 30 min = 8.5), and a note when overnight logic is applied.
- Limitations:Time Range mode covers a single shift (up to ~24 hours). For spans crossing multiple calendar days, switch to Hours Between Two Dates.
How the Math Works
- Worked Example:Start 8:30 AM, End 5:15 PM, 30-min break: (1035 − 510) − 30 = 495 min = 8 h 15 min = 8.25 decimal hours.
- Overnight Logic:Start 11:00 PM (1380 min), End 7:00 AM (420 min): 420 + 1440 − 1380 = 480 min = 8.0 hours.
- Date Mode:Uses full date-time timestamps so the span can cross any number of calendar days without the 24-hour limit of Time Range mode.
How to Use the Hours Calculator
Hours Calculator FAQ
How do I calculate hours between two times?
How are minutes converted to decimal hours?
What is the difference between Time Range and Hours Between Two Dates?
Why does my overnight shift show "calculated as an overnight shift"?
Time & Date Reference Note
Informational Use: These tools use standard date/time algorithms and your browser’s timezone data (IANA). Results are intended for general reference and planning only.
Verification Recommended: Time zone rules and daylight saving changes vary by region and year. For critical scheduling, payroll, or legal deadlines, confirm results with official sources.
Local Verification: Always confirm times, dates, and business-day counts with official sources or qualified professionals when stakes are high.