Work out hours worked in seconds
Whether you are filling in a timesheet, calculating overtime, paying a part-time worker, billing a client by the hour or simply checking how long a journey took, you need the exact time between two clock times. Doing it by hand gets tricky with breaks and with shifts that run past midnight. This calculator handles both and converts the result to decimal hours, the format payroll and invoicing systems use.
How to use the calculator
- Enter the start and end time. If the end time is earlier than the start time, the calculator assumes the shift ends the next day.
- Enter any unpaid break in minutes.
- Optionally enter an hourly rate to see the pay for that time.
- Use the weekly timesheet to add up hours for every day of the week.
How the difference is calculated
minutes = (end − start) − break
if end is earlier than start: add 24 hours (1,440 minutes)
Example: 09:30 to 18:15 is 8 hours 45 minutes. Subtracting a 45-minute lunch break leaves 8 h 0 min. An overnight security shift from 22:00 to 06:00 is 8 hours.
Why decimal hours?
Payroll and billing software multiplies hours by a rate, which needs a decimal number. 7 hours 30 minutes is 7.5 hours, not 7.30. To convert minutes to a decimal, divide by 60:
| Minutes | Decimal |
|---|---|
| 15 min | 0.25 |
| 20 min | 0.33 |
| 30 min | 0.5 |
| 45 min | 0.75 |
So 37 hours 45 minutes in a week is 37.75 hours. At ₹250 an hour, that is ₹9,437.50.
Frequently asked questions
Can a shift be longer than 24 hours?
No. For periods longer than a day, use the Days Between Dates calculator.
Does it account for daylight saving time?
No. India does not use daylight saving. In countries that do, a night shift on the change-over night may be one hour longer or shorter.
How do I convert a time between countries?
Use the Time Zone Converter.