How to work out hours worked, breaks and night shifts included.
Work out the hours between a start and an end time in your browser, nothing is uploaded: breaks, shifts past midnight, rounding and decimal hours.
By Suraj Kumar4 min read
Working out the hours from 8:45 to 17:15 looks easy until a break, a shift past midnight or a payroll form that wants 8.5 rather than 8:30 comes into it. Here is the arithmetic, and how the calculator does it for you.
Take the start from the end.
Turn both times into minutes after midnight, take one from the other and turn the minutes back into hours: 17:15 is 1,035 minutes and 8:45 is 525, so the time between is 510 minutes, or 8 hours 30 minutes. Doing it in whole minutes avoids the slip of borrowing an hour as 100 minutes.
The calculator keeps every length as whole seconds and never rounds unless you ask, so a long list of days adds up to exactly what a careful person with a pencil would get.
Take off the breaks.
An unpaid lunch is taken off the time between: 8 hours 30 minutes less a 30-minute break is 8 hours. Type breaks in minutes, as 1:15, or several at once as 30, 15.
If you clock out and back in for lunch, give the day two ins and outs instead; the time between them is simply not counted. A time card in the calculator takes up to four a day.
Past midnight, and the afternoon.
When the end is earlier than the start, the shift ran into the next day: 22:00 to 06:00 is 8 hours, not minus 16. The calculator adds a day and says that it did.
People often type 9 to 5 and mean the afternoon. When the end is an hour typed on its own, with no am, pm or leading zero, and reading it as the afternoon makes it later than the start, it is read that way, and the page says so with what to type for the morning instead.
Hours and minutes, or decimal hours.
Payroll systems often want hours as a decimal: 8 hours 30 minutes is 8.5 hours, because 30 minutes is half an hour. Every answer is given both ways, and as minutes.
Some employers round clock times to the nearest 5, 6 or 15 minutes. Under More options you can do the same, to each time or to each day's total; the rules differ by employer, so it is always your choice.
Further reading
Topics: hours calculator · calculate hours worked · time calculator · hours between two times · work hours calculator · shift hours calculator · hours and minutes calculator
A little less theory. A little more doing.
Try it on your own terms, with a free browser tool.
Try the tool