How to calculate hours between two times
To find the hours between two times, subtract the in time from the out time, then take off any unpaid break. 9:00 AM to 6:15 PM is 9 hours 15 minutes; minus a 45 minute lunch, that is 8 hours 30 minutes worked, or 8.50 decimal hours. That is the example the calculator opens with, and the formula never changes:
Hours worked = out time minus in time, minus unpaid breaks.
- Use a 24 hour clock for the math. 6:15 PM is 18:15, and 18:15 minus 9:00 is 9:15.
- Borrow an hour when the minutes don't fit. For 8:45 AM to 5:10 PM, write 17:10 as 16:70. 16:70 minus 8:45 is 8:25.
- Divide the minutes by 60 for decimal hours. 8:25 is 8 plus 25 divided by 60, or 8.42 hours.
Some common workdays, worked out:
| In time | Out time | Unpaid break | Hours worked |
|---|---|---|---|
| 9:00 AM | 5:00 PM | 30 min | 7:30 (7.50) |
| 8:00 AM | 5:00 PM | 1 hour | 8:00 (8.00) |
| 9:00 AM | 6:00 PM | 1 hour | 8:00 (8.00) |
| 9:30 AM | 6:30 PM | 1 hour | 8:00 (8.00) |
| 7:00 AM | 3:30 PM | 30 min | 8:00 (8.00) |
| 10:00 PM | 6:00 AM | 30 min | 7:30 (7.50), next day |
The calculator reads times the way people type them: 9, 930, 9:30, 9.30, 9:30 pm, 21:30, noon or midnight. A plain 6 reads as 6:00 AM, so add pm or type 18:00 for an evening time. The 12 h and 24 h switch only changes how times are shown, and the page remembers your choice in this browser.
In time out time calculator for an office day
Many offices note each person's in time and out time on an attendance register, and the working hours are what lies between the two, less lunch. Priya Nair, an accounts executive in Kochi, came in at 9:30 AM, went out for lunch from 1:00 PM to 2:00 PM and left at 6:45 PM. Enter her day as two in and out pairs:
| Entry | In time | Out time | Hours |
|---|---|---|---|
| In/out 1 | 9:30 AM | 1:00 PM | 3:30 |
| In/out 2 | 2:00 PM | 6:45 PM | 4:45 |
| Total | 8:15 (8.25 hours) |
Her office in and out times span 9 hours 15 minutes, and 8 hours 15 minutes of that is work. One pair gives the same answer: 9:30 AM to 6:45 PM with a 60 minute break, or with Breaks set to Start and end, 1:00 PM to 2:00 PM. Pairs are handy when someone steps out more than once, say for a bank visit as well as lunch, and the calculator takes up to four.
Work hours past midnight
When the out time is earlier than the in time, the work ended the next day. The calculator handles this on its own and marks the hours "next day". By hand, add 24 hours to the out time before you subtract.
Kenji Sato, a night receptionist at a hotel in Osaka, starts at 10:00 PM and leaves at 7:00 AM, with a one hour break. On a 24 hour clock, 7:00 AM the next day is 31:00, and 31:00 minus 22:00 is 9 hours. Take off the break and he worked 8 hours, or 8.00 decimal hours.
If his break is a set gap, say 2:00 AM to 3:00 AM, two pairs work just as well: 10:00 PM to 2:00 AM is 4:00 and 3:00 AM to 7:00 AM is 4:00. The day timeline lays the night out across midnight, so you can see which hours fell before and after it. One more detail: an in time equal to the out time counts as zero, not 24 hours.
Breaks and rounding
Only unpaid breaks come off. In the US, the Department of Labor counts short breaks of about 5 to 20 minutes as hours worked, while meal periods, typically 30 minutes or more, are not work time. In the UK, workers who work more than 6 hours a day get one uninterrupted 20 minute rest break, and whether it is paid depends on their contract. Elsewhere, your contract and local law decide.
- Break as minutes or as times. Type 45 or 0:45, or switch Breaks to Start and end and type 1:00 PM and 1:45 PM. The break comes off the day once, however many pairs you enter.
- Rounding, only if your employer rounds. The Rounding menu rounds each clock time to the nearest 5, 6, 10 or 15 minutes before the math. At 15 minutes, 9:07 becomes 9:00 and 9:08 becomes 9:15.
- Two formats. Every result shows hours and minutes and decimal hours side by side, so a timesheet that wants 8.25 gets it without a separate conversion.
When you need more than one day
This calculator answers one day. For a week or two of days with pay, the time card calculator takes up to 14 days of in and out times with breaks and works out gross pay at an hourly rate. To mark a whole team present, absent or on leave for every day of a month, the attendance sheet template gives you a printable and spreadsheet register built for it. To keep today's result, use Print, Download CSV, which opens in Excel or Google Sheets, or Copy link, which saves your times in a link you can send or reopen.
When daily hours outgrow the calculator
Working out one day by hand is quick. Working out every day for a whole team means collecting everyone's times first, and that is where gaps and typos creep in. In Staffic, Clock In/Out takes each member's first and last tracked session of the day, from the timer in the desktop app, as their in and out times, so nobody types them. Timesheets count a session that runs past midnight on the day it started, in the time zone you pick, and attendance tracking shows who worked each day and who was on leave.












