Dates & time

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.

✅ No login needed100% freeRuns in your browserNothing savedYour data stays on your device
Hours Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Everything you type is calculated on your own computer or phone. Nothing is saved, not even in your browser, and it is gone when you close the page. Nothing is uploaded, stored or seen by Codanics, and no login is needed.

If the end time is earlier than the start time, the shift is treated as ending the next day (overnight).

  • 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.

Citation · APA 7th edition

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.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the hours calculator

  1. For one shift, open Between two times and enter the start time, end time and unpaid break in minutes.
  2. For a week, open Weekly timesheet, fill one row per day (add or remove rows) and enter your hourly rate.
  3. An end time earlier than the start time (for example 22:00 to 06:00) is counted as an overnight shift.
  4. 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.

MinutesDecimalMinutesDecimal
6 min0.1030 min0.50
12 min0.2040 min0.67
15 min0.2545 min0.75
20 min0.3350 min0.83
decimal hours = hours + minutes ÷ 60 minutes = (decimal part) × 60

Worked timesheet example

DayShiftBreakWorked
Mon09:00–17:0060 min7 h 00 = 7.00
Tue08:30–17:1545 min8 h 00 = 8.00
Wed09:00–18:3030 min9 h 00 = 9.00
Thu22:00–06:00 (overnight)30 min7 h 30 = 7.50
Fri09:15–13:450 min4 h 30 = 4.50
Total36 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.
Counting days rather than hours? Use the date difference calculator. Working with a team in another country? The time zone converter shows their local time.
Planning to study abroad? Read our study abroad and PhD guide and join the Codanics WhatsApp channel for scholarship and PhD updates.

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

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 24 November 2026, last updated 24 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.