Hours Calculator: Work Hours Between Two Times, Timesheet and Pay
Enter a start and an end time to get the hours and minutes between them, minus your break. Night shifts that cross midnight work automatically. Fill the weekly timesheet for total and decimal hours, and add an hourly rate to see your pay. Nothing is saved.
If the end time is earlier than the start time, the shift is treated as ending the next day (overnight).
| Day | Start | End | Break (min) | Hours | Remove |
|---|
- PriceFree, no login or sign-up needed
- Your dataCalculated in your browser; nothing is saved
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published24 November 2026
- Last updated24 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Hours calculator [Online tool]. Codanics. Retrieved 24 November 2026, from https://codanics.com/tools/hours-calculator/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 24 November 2026.
How to use the hours calculator
- For one shift, open Between two times and enter the start time, end time and unpaid break in minutes.
- For a week, open Weekly timesheet, fill one row per day (add or remove rows) and enter your hourly rate.
- An end time earlier than the start time (for example 22:00 to 06:00) is counted as an overnight shift.
- Read the total in hours and minutes and in decimal hours, the pay and the working for each row.
How to calculate hours worked between two times
Hours worked = end time − start time − unpaid break; if the end time is earlier than the start time, add 24 hours because the shift ended the next day. For a shift from 09:00 to 17:45 with a 30-minute break: 17:45 − 09:00 = 8 h 45 min, minus 30 min = 8 h 15 min, which is 8.25 decimal hours.
Hours and minutes vs decimal hours
Payroll and most timesheet software use decimal hours, because you can multiply them by a rate. Divide the minutes by 60 to convert. A common mistake is to write 8 h 15 min as “8.15”; it is really 8.25.
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 6 min | 0.10 | 30 min | 0.50 |
| 12 min | 0.20 | 40 min | 0.67 |
| 15 min | 0.25 | 45 min | 0.75 |
| 20 min | 0.33 | 50 min | 0.83 |
Worked timesheet example
| Day | Shift | Break | Worked |
|---|---|---|---|
| Mon | 09:00–17:00 | 60 min | 7 h 00 = 7.00 |
| Tue | 08:30–17:15 | 45 min | 8 h 00 = 8.00 |
| Wed | 09:00–18:30 | 30 min | 9 h 00 = 9.00 |
| Thu | 22:00–06:00 (overnight) | 30 min | 7 h 30 = 7.50 |
| Fri | 09:15–13:45 | 0 min | 4 h 30 = 4.50 |
| Total | 36 h 00 = 36.00 hours | ||
At Rs 1,250 an hour, the pay is 36 × 1,250 = Rs 45,000. If overtime starts after 40 hours a week, none applies here.
Tips for accurate timesheets
- Use the 24-hour clock (13:00, not 1:00) to avoid mixing up morning and afternoon.
- Only subtract unpaid breaks. Paid tea breaks stay in the total.
- Round the final total, not each day, or small errors add up over a month.
- On the night clocks change for daylight saving, a night shift is one hour longer or shorter than the clock times suggest. Pakistan and India do not use daylight saving.
- Overtime rules (after 8 hours a day, 40 or 48 hours a week, rate 1.5× or 2×) depend on your country and contract.
Frequently asked questions
How do I calculate hours worked?
Subtract the start time from the end time and then subtract any unpaid break. For example, 09:00 to 17:45 with a 30-minute break is 8 hours 15 minutes, or 8.25 decimal hours.
How do I calculate hours for a night shift that crosses midnight?
Add 24 hours to the end time before subtracting. For 22:00 to 06:00: (06:00 + 24:00) − 22:00 = 8 hours. The calculator does this automatically when the end time is earlier than the start time.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes = 0.25 hours, 30 minutes = 0.5 hours, 45 minutes = 0.75 hours. So 7 h 45 min is 7.75 hours.
Is 8.30 hours the same as 8 hours 30 minutes?
No. 8.30 decimal hours is 8 hours 18 minutes. Eight hours 30 minutes is 8.5 decimal hours.
How do I calculate pay from hours?
Multiply the decimal hours by the hourly rate. 36 hours × Rs 1,250 = Rs 45,000. If overtime applies, multiply the extra hours by the overtime rate, for example 1.5 times.
Does this hours calculator save my timesheet?
No. Everything stays in your browser and nothing is saved or uploaded. Copy the result before you close the page.
Do I need to log in or create an account to use the hours calculator?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Hours calculator [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/hours-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel