Standard 9-to-5 Shift with 30-Min Lunch
An employee clocks in at 8:30 AM and clocks out at 5:00 PM with a 30-minute unpaid lunch break.
(17:00 - 08:30) - 30 mins = 8 hrs 30 mins - 30 mins Calculate exact hours, minutes, seconds, and decimal time between two timestamps instantly.
Core tools for calculating elapsed time, adding time, and subtracting intervals.
Calculate precise elapsed hours, minutes, and seconds with decimal output.
Fast time difference calculator with workday presets and copy actions.
Calculate total hours between start and end timestamps with break deduction.
Add and subtract multiple time entries across days, hours, and minutes.
Add hours and minutes to a clock time to determine future arrival times and ETAs.
Subtract duration from a clock time for reverse scheduling and countback.
Daily shift trackers, 4-punch time cards, and 7-day weekly overtime calculators.
Calculate daily shift hours, unpaid meal breaks, daily overtime (>8h), and gross pay.
4-punch daily time card simulator (Morning In/Out, Lunch gap, Afternoon In/Out).
7-day weekly punch timesheet with 40-hour FLSA overtime and printable summary.
Convert clock minutes to decimal hours, military time, and universal time units.
Convert hours & minutes to decimal hours (e.g. 7h 45m = 7.75h) for payroll software.
Convert minutes to decimal hours with complete 1-60 searchable reference table.
Convert across milliseconds, seconds, minutes, hours, days, weeks, and years.
Convert fractional or whole hours into total clock minutes with multiplication steps.
Convert raw minutes to whole hours + remainder minutes (e.g. 195m = 3h 15m).
Convert 12-hour AM/PM time to 24-hour military notation with phonetic pronunciation.
Convert civilian 12-hour time to standardized 24-hour clock formats.
Convert military 24-hour timestamps back to civilian 12-hour AM/PM format.
Add or subtract days, hours, and minutes from any calendar date and timestamp.
Calculate exact elapsed days, hours, and business days between two calendar dates.
Input the beginning hour and minute. Toggle AM/PM in 12-hour civilian mode or type military hours in 24-hour mode.
Input the ending hour and minute. If the end time is numerically earlier, overnight shift detection is automatically applied.
Select a quick break pill (e.g. 30m Lunch) or type custom unpaid minutes to calculate net billable hours.
Instant conversion into decimal hours for payroll, total minutes, total seconds, and one-click copy to clipboard.
Duration (Hours) = (T_end - T_start + 24) mod 24 T_start = Starting timestamp in decimal hours from midnight (0.0 to 24.0)T_end = Ending timestamp in decimal hours from midnight (0.0 to 24.0)mod 24 = Modulo 24 arithmetic ensuring continuous cross-midnight calculationEliminates negative duration errors when shifts span past 12:00 AM midnight.
Decimal Hours = Hours + (Minutes / 60) + (Seconds / 3600) Hours = Integer hour componentMinutes = Remaining minutes (0 to 59)Seconds = Remaining seconds (0 to 59)Standard conversion formula required for payroll processing systems (ADP, QuickBooks, Gusto).
Step-by-step breakdown of common real-world time scenarios, work shifts, and duration math.
An employee clocks in at 8:30 AM and clocks out at 5:00 PM with a 30-minute unpaid lunch break.
(17:00 - 08:30) - 30 mins = 8 hrs 30 mins - 30 mins A healthcare worker starts their shift at 9:45 PM and finishes at 6:15 AM the following morning.
(06:15 + 24:00) - 21:45 = 30:15 - 21:45 A student begins a study block at 1:15 PM and concludes at 4:50 PM.
16:50 - 13:15 = 3 hrs 35 mins A runner starts a half-marathon at 7:00:00 AM and crosses the finish line at 8:44:22 AM.
08:44:22 - 07:00:00 Calculating the duration between two times is a fundamental mathematical operation used daily across global industries, from payroll processing and project management to aviation block times and sports athletic timing. While calculating the difference between two timestamps on the same clock cycle appears straightforward, nuances such as base-60 sexagesimal arithmetic, midnight crossover boundaries, and decimal conversions for payroll require structured mathematical rules.
Standard clock time operates on a sexagesimal (base-60) numerical system inherited from ancient Babylonian astronomy, where 1 hour comprises 60 minutes, and 1 minute comprises 60 seconds. Conversely, modern accounting, enterprise software, and payroll spreadsheets operate on a base-10 (decimal) system. Learn more in our comprehensive Time & Payroll Guides or test your calculation on our flagship Time Duration Calculator.
When subtracting time (such as 5:15 PM - 8:30 AM), one cannot simply perform base-10 decimal subtraction. If the minute value of the ending timestamp is smaller than the minute value of the starting timestamp (e.g. 15 minutes minus 30 minutes), one must borrow 1 whole hour, which converts into 60 minutes rather than 100 units.
Graveyard shifts, night flights, and late-night study sessions frequently cross midnight. In a 24-hour format, a shift starting at 22:00 (10:00 PM) and ending at 06:00 (6:00 AM) yields a naive subtraction of 6 - 22 = -16.
To resolve negative spans across calendar days deterministically, modulo arithmetic is applied:
(6 - 22 + 24) = 8 hours. For quick preset shifts, check our Time Between Two Times Calculator or compute total elapsed shift hours with break deduction on the Hours Calculator.
In payroll processing, employee wages are computed by multiplying total billable hours by an hourly pay rate (e.g. $25.00/hr). Multiplying hours and minutes directly without decimal conversion produces severe mathematical errors (for example, multiplying $20.00 × 7.30 instead of $20.00 × 7.50 would underpay an employee by $4.00 per shift).
Easily convert your shift duration to payroll decimals with our Decimal Hours Calculator and Minutes to Decimal Chart, or calculate gross earnings automatically using our Work Hours Calculator.
15 / 60 = 0.25 hours30 / 60 = 0.50 hours45 / 60 = 0.75 hoursDecimal Hours = Total Minutes / 60To calculate the duration between two times, convert both times to a 24-hour military format, subtract the starting hours and minutes from the ending hours and minutes, and borrow 60 minutes from the hours column if the ending minutes are smaller than the starting minutes.
When the ending time is on the next calendar day (numerically smaller than the start time), add 24 hours (or 1,440 minutes) to the ending time before subtracting the starting time.
To convert duration to decimal hours, keep the integer hours and divide the remaining minutes by 60. For example, 7 hours and 45 minutes equals 7 + (45 / 60) = 7.75 decimal hours.
Yes. Enter your break duration in minutes into the "Deduct Break" field. The calculator automatically subtracts the break from the gross elapsed duration to show your net billable time.
All calculations on this tool are deterministic and rigorously tested against base-60 modulo arithmetic and US Fair Labor Standards Act (FLSA 29 CFR § 785.48) payroll rounding guidelines.