Time Work
How many hours did you actually work after breaks?
Enter your start time, end time, and any break duration to instantly calculate total hours worked. Useful for timesheets, freelance billing, or checking shift length before submitting hours.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Think of your workday as a container. The shift from clock-in to clock-out defines the outer boundary. Breaks punch holes in that container. What remains is billable time — the number your employer, client, or payroll system actually cares about.
The calculation converts both times into minutes since midnight, then subtracts the earlier from the later. If the result is negative, the shift crossed midnight, so 1,440 minutes (one full day) is added back. Break minutes are then subtracted from that span. The final number is divided by 60 to convert to hours as a decimal.
The decimal form is what matters in practice. Payroll software, invoice templates, and project management tools almost always expect decimal hours. A result of 7.75 means 7 hours and 45 minutes. That precision prevents systematic under-reporting that adds up across a pay period.
When To Use This
Right tool, right situation
Use this tool whenever you need to convert a clock-in/clock-out pair into a loggable number. Daily timesheet entries, freelance invoice line items, checking whether a shift qualifies for overtime rules, and reconciling a punched time card against a scheduled shift are all good fits.
It is also useful before submitting hours to a payroll system to catch errors that would otherwise require a correction request later. Payroll corrections are administratively slow — a 30-second check now is faster than a two-day wait for an amended pay stub.
This tool is not appropriate for tracking total hours across multiple days or multiple projects in one session. It calculates one shift at a time. For weekly totals, run each day separately and add the decimal results, or use a purpose-built time-tracking application that stores records across sessions.
Common Mistakes
Why results sometimes look wrong
Mistake: Entering break time as hours instead of minutes. A 1-hour lunch entered as 1 instead of 60 deducts only 1 minute from your total. The result looks almost right, which makes this error easy to miss. Always verify the break field unit — this tool uses minutes.
Mistake: Not accounting for all unpaid time. Many workers track only their lunch break and forget shorter breaks that were also unpaid. If your employer designates all breaks under 20 minutes as paid, none of them go in this field. If shorter breaks are unpaid, add them up and enter the combined total. The rule depends on your employer or jurisdiction, not this tool.
Mistake: Using 12-hour AM/PM notation in a 24-hour field. Entering 1:00 PM as 1:00 instead of 13:00 registers as 1:00 AM. Most time pickers handle this conversion automatically, but if you type manually, use 24-hour format. A shift entered as 9:00 to 5:00 reads as 9 AM to 5 AM — an overnight shift of 20 hours rather than an 8-hour day.
The Math
Worked examples and deeper derivation
Let S be start time in minutes (hours x 60 + minutes) and E be end time in minutes. Raw shift = (E - S + 1440) % 1440. This modular arithmetic handles both same-day and overnight spans with one formula.
Paid minutes = raw shift - break minutes. Total hours = paid minutes / 60. The decimal portion of the result directly encodes the remaining minutes: 0.25 = 15 min, 0.5 = 30 min, 0.75 = 45 min. These are the only four quarter-hour values you will see on most timesheets.
One edge case: if a shift runs exactly 24 hours (clock-in and clock-out at the same time), the modular formula returns 0. The tool catches this and asks you to verify your entries, since a 0-minute shift and a 24-hour shift produce the same inputs but completely different meanings.
Expert Unlock
The thing most explanations skip
The modular arithmetic approach ((end - start + 1440) % 1440) assumes the shift spans at most 23 hours and 59 minutes. For shifts longer than 24 hours — uncommon but legal in some jurisdictions for on-call periods — this formula caps out and gives a result shorter than actual time worked. If your employer logs on-call time that may exceed a calendar day, you need a tool that accepts date inputs, not time-only inputs.
What counts as work time and what gets deducted?
Need something this doesn't cover?
Suggest a tool — we'll build it →