Worked example: Hours Calculator
Legacy standard shift. This fixed reference example shows one complete scenario; the interactive results above use your current inputs.
View the example inputs
- Calculate hours between
- Clock times / one shift
- Clock-in
- 09:00
- Clock-out
- 17:00
- Clock-out is next day
- No
- Unpaid break
- 30 minutes
- Optional pay illustration
- Time only
| Calculated quantity | Example result |
|---|---|
| Paid decimal hours | 7.5 hours |
| Paid duration | 7:30:00 |
| Elapsed before break | 8 hours |
Hours Calculator: understand the interval before using a decimal total
How many hours are between my start and finish times?
Start with elapsed time, then decide whether a deduction belongs in the calculation. From 09:00 to 17:00 is eight nominal hours. Deducting an entered 30-minute break leaves seven hours 30 minutes, or 7.5 decimal hours. The ledger keeps elapsed, break and net quantities separate.
The existing “paid” labels describe the net arithmetic after your entered deduction. Whether those minutes should actually be paid depends on agreements and applicable rules that this calculator does not know. A correct subtraction alone does not establish a payroll policy.
How do I calculate hours for an overnight shift?
In clock-only mode, choose next day when the finish belongs to the following day. From 22:00 to 06:00 with next day selected gives eight hours before any break. Without that choice, the page reports that the end would precede the start rather than silently guessing your intention.
Equal clocks illustrate the distinction: 09:00 to 09:00 on the same day is zero hours, while the explicit next-day setting gives 24 nominal hours. For intervals longer than a single overnight span, use dates so the intended number of days is visible.
How do I convert minutes to decimal hours for a timesheet?
Divide the minutes by 60. Fifteen minutes is 0.25 hours, 30 minutes is 0.5 and 45 minutes is 0.75. A 7:45 duration is therefore 7.75 hours, not 7.45. The reference table includes exact common conversions so those two formats can be checked side by side.
The calculator retains unrounded time internally and displays a decimal approximation. It does not round to six-minute, quarter-hour or another payroll increment. Applying a business rounding rule is a separate decision, and rounding each small segment can differ from rounding the final total.
Can I calculate hours between two dates and times?
Yes. Dated mode uses Gregorian calendar fields and validates the dates. From 2024-02-28 at noon to 2024-03-01 at noon spans 48 nominal hours because 2024 includes February 29. The break is deducted once from the full dated interval.
These are nominal wall-clock hours. A real named-zone day can have a clock change, so an interval through daylight saving time may have a different actual elapsed duration. This page does not infer a location, offset, leap second or time zone from your browser.
How do breaks and an hourly rate affect the result?
A break is entered as a duration, not a start/end position on the timeline. The chart divides the elapsed interval into net time and the entered break; its shape does not say when the break occurred. A deduction larger than the elapsed interval is rejected.
The optional rate illustration multiplies net decimal hours by your entered amount per hour. At 7.5 hours and a rate of 20, it gives 150 in the same chosen currency. It does not apply overtime thresholds, taxes, minimum pay, holiday rates or legal break rules, and it is not a substitute for a payroll calculation.
Why is there no single number of hours in every month?
A 28-date month contains 672 nominal hours at 24 hours per date, while a 31-date month contains 744. A common year has 8,760 such hours and a leap year 8,784. Those are fixed-day arithmetic totals, not a claim about every named-zone interval or a universal paid-work schedule.
Use this Hours Calculator for one interval and its break. Use the Time Card Calculator for multiple daily entries, and the Time Calculator to combine duration quantities directly. Separating those questions makes the inputs easier to audit and the resulting totals easier to explain.
Formula and calculation method
Nominal elapsed time = end − start; clock-only next-day mode adds 24 hours before subtracting the start. Net time = elapsed − entered break.
Decimal hours = net milliseconds / 3600000. 7 hours 30 minutes is 7.5 hours, not 7.30 hours. Intermediate results are not rounded to a payroll increment.
Dated values are Gregorian wall-clock fields, not named-zone instants. DST and leap seconds are not modeled. Use the Time Zone Calculator for location-dependent clock conversions.
Optional straight-time amount = net decimal hours × entered hourly rate. The break is a duration deduction without an assumed position in a timeline.
Scope and Limitations
- Not a complete time card or legal payroll calculation. No automatic overtime, lunch classification, DST correction or time-clock rounding. Dates use years 0001–9999; minutes may include fractions that resolve to whole milliseconds.
Reference Sources
Frequently asked questions
How do I enter an overnight finish time?
Use clock mode and explicitly select next day, or enter full dates and times in dated mode. An earlier finish is not automatically assumed to be tomorrow.
Is 7:30 the same as 7.30 decimal hours?
No. Seven hours 30 minutes is 7.5 decimal hours. Thirty minutes is half an hour.
Does the break reduce the elapsed interval itself?
No. Elapsed time stays the same; the break is deducted to produce net time. The ledger and chart show both quantities.
Does this calculator round time for payroll?
No. It keeps the time calculation unrounded internally and does not apply a payroll increment, overtime law or legal break classification.
Does dated mode handle daylight-saving changes?
No. It uses nominal wall-clock arithmetic. A location-aware calculation is needed when actual elapsed time depends on a time-zone transition.