Enter when you clocked in, when you clocked out and how long your break was, and this tool shows how many hours and minutes you actually worked — both as a clock value like 8:30 and as decimal hours like 8.5 for payroll. It handles shifts that run past midnight and can multiply the result by an hourly rate. Everything is calculated in your browser; nothing is uploaded.
Unpaid break in minutes. Leave at 0 for none.
Hours worked
7:30
7.5 decimal hours
How it works
The two times are converted to minutes since midnight and subtracted. If the end time is the same as or earlier than the start time, the tool assumes you worked past midnight and adds a full day, so 22:00 to 06:00 correctly reads as eight hours rather than a negative span. The unpaid break is then taken off the gross shift to give the hours actually worked.
The result is shown two ways: as hours and minutes (8:30) for reading off a timesheet, and as decimal hours (8.5) because payroll and invoicing multiply by a rate. Decimal hours are just minutes divided by sixty — 30 minutes is 0.5, 15 minutes is 0.25, 10 minutes is about 0.17. If you enter an hourly rate the tool multiplies it by the decimal hours to estimate gross pay for the shift.
Practical examples
A standard workday
You start at 09:00, finish at 17:30 and take a 30-minute lunch. The gross span is 8 hours 30 minutes; minus the break you worked 8:00, or 8.0 decimal hours.
An overnight shift
A security shift runs 22:00 to 06:00 with no break. Because the end is earlier on the clock than the start, the tool adds a day and reports 8 hours worked (8.0 decimal).
A part-time shift with pay
You work 16:00 to 20:15 with no break, at 1,200 per hour. That is 4 hours 15 minutes, or 4.25 decimal hours, giving 5,100 in gross pay for the shift.
Frequently asked questions
How do I calculate hours worked between two times?
Subtract the start time from the end time, then take off any unpaid break. This tool does that for you: enter both clock times and the break in minutes, and it returns the worked time in hours and minutes and as decimal hours.
How does it handle a shift that ends after midnight?
If the end time is the same as or earlier than the start time, the shift is treated as crossing midnight and a full 24 hours is added before subtracting. So 23:00 to 07:00 is eight hours, not a negative number.
What are decimal hours and why do I need them?
Decimal hours express minutes as a fraction of an hour: 8 hours 30 minutes is 8.5, 7 hours 15 minutes is 7.25. Payroll systems, invoices and spreadsheets multiply an hourly rate by decimal hours, so this is usually the figure you copy into them.
How do I convert minutes to a decimal?
Divide the minutes by 60. 15 minutes is 0.25, 20 minutes is about 0.33, 45 minutes is 0.75. The tool shows the decimal value automatically so you do not have to do the division.
Is the lunch break subtracted from my hours?
Yes, if you enter it. The break is treated as unpaid time and removed from the gross shift. If your break is paid, leave the break field at zero so the full span counts.
Can I calculate my daily pay with this?
Enter an hourly rate and the tool multiplies it by the decimal hours to estimate gross pay for the shift. It is a rough figure before tax, overtime premiums and other deductions, which depend on your local rules and contract.
Does it calculate overtime?
No. It reports total hours worked; it does not split them into regular and overtime or apply premium rates. If your first eight hours are paid at one rate and the rest at another, work out each block separately.
What time format should I use?
The inputs use the 24-hour clock through your browser’s native time picker, so 5:30 in the afternoon is 17:30. On most devices you can type the digits directly or use the small clock control.
Do time zones or daylight saving affect the result?
No. The tool works only with the two clock values you type and knows nothing about a calendar date, so it never adjusts for time zones or a daylight-saving change. On a night when the clocks shift, add or subtract that hour yourself.
How is the break rounded?
It is not rounded. The break is subtracted in whole minutes exactly as entered, and the worked total is exact to the minute. Rounding to the nearest quarter hour, if your employer does that, is a separate policy you would apply afterwards.
What if my break is longer than the shift?
The tool refuses the calculation and shows a message, because a break at least as long as the time between clock-in and clock-out would leave zero or negative hours. Check the times and the break value.
Can I add up several days or a whole week?
This tool covers one shift at a time. To total a week, calculate each day and add the decimal-hour figures, which sum cleanly (unlike H:MM values, where 45 + 30 minutes rolls over into the next hour).
Is my data sent anywhere?
No. The calculation runs entirely in your browser with JavaScript. The times, break and rate you enter never leave your device.
Related tools
Time Duration Converter
Convert time durations between seconds, minutes, hours, days, weeks, months and years — instantly, in your browser.
Unit converters
Annual Salary Calculator (Serbia)
Convert between monthly and annual salary — net, gross and employer cost side by side, with a configurable number of payments.
Finance & salary
Age Calculator
Exact age in years, months and days from a birth date, plus total days lived and time until the next birthday.
Date & time
Days Between Dates
Count the exact days between two dates, with a weeks and calendar breakdown. Runs in your browser.
Date & time
Gross to Net Salary (Serbia)
Convert a Serbian gross salary to net with the full tax and contributions breakdown — sourced 2026 parameters.
Finance & salary
Net to Gross Salary (Serbia)
Find the gross salary behind a Serbian net amount — the exact inverse calculation, not a rough percentage.
Finance & salary