Date & Time

Hours Calculator

Add up a week of shifts with breaks, night shifts, overtime and pay.

By Nitin Raturi · Last reviewed

Your timesheet

How to use the Hours Calculator

Add up the hours on a timesheet, with breaks, overtime and pay.

  1. Enter each shift on its own line with its break.
  2. Set the weekly hours before overtime.
  3. Add your hourly rate and overtime rate, or leave the rate at 0.
  4. Read total, ordinary and overtime hours, and the pay.

Good to know

  • Night shifts that cross midnight are handled.
  • Your timesheet stays in the page address after #.

Shifts

Each shift you worked, one per line, with any unpaid break.

How to fill it in

  • Write start-end and the break in minutes: 09:00-17:30 30.
  • 12-hour times work too: 9:00 am - 5:30 pm, 30.
  • An end time before the start means the shift ran past midnight.

Example

22:00-06:00 with a 30-minute break is 7 h 30 min.

One shift per line: start-end, then the break in minutes.

Overtime after

Hours in the week before overtime starts.

How to fill it in

  • Enter 0 to 168 hours, as your contract or employer sets it.

Example

The sample week of 44 h 45 min has 4 h 45 min of overtime after 40 hours.

Keep in mind: Overtime rules depend on your employer, contract and the law that applies to you; check them.

Hourly rate

Your ordinary pay for one hour.

How to fill it in

  • Enter ₹ per hour, or 0 to see hours only.

Example

At ₹250 an hour and no overtime, the sample week pays ₹11,187.50.

Overtime rate

How many times the ordinary rate an overtime hour pays.

How to fill it in

  • Enter 1 to 5: 1.5 is time and a half, 2 is double time.

Example

With overtime after 40 hours at double time, the week pays ₹12,375.00.

Hours worked

44 h 45 min

6 shifts add up to 44 h 45 min (44.75 hours), of which 0 h 00 min is overtime. Pay: ₹11,187.50.

Ordinary hours
44 h 45 min
Overtime
0 h 00 min
Ordinary pay
₹11,187.50
Overtime pay
₹0.00

Unpaid breaks are subtracted. Overtime is counted over the whole week, not per day. Minutes are not rounded.

How this calculator works

  1. Step 1Each shiftend − start − breakPast midnight is handled.
  2. Step 2Add uptotal hoursAll shifts in the week together.
  3. Step 3Overtime and payover the limit × rateHours above your weekly limit pay the overtime rate.

Write one shift per line with its unpaid break. The calculator adds them up, splits off overtime above your weekly limit and works out the pay.

Worked example: a six-day week

Shifts with lunch breaks
Shift
end − start − break
  1. Day 1minus 60 min break8 h 00 min
  2. Day 2minus 60 min break8 h 30 min
  3. Day 3minus 45 min break7 h 45 min
  4. Day 4minus 60 min break9 h 00 min
  5. Day 5minus 30 min break7 h 30 min
  6. Day 6no break4 h 00 min
  7. Week44 h 45 min

At ₹250 an hour, with overtime only after 48 hours, the week pays ₹11,187.50.

Where the limit falls

  • After 48 hours₹11,187.50No overtime: all hours are ordinary.
  • After 40 hours₹12,375.004 h 45 min at double time.

A night shift from 22:00 to 06:00 with a 30-minute break is 7 h 30 min.

Assumptions and limits

  • Weekly overtimeCounted over the week, not per day.
  • Exact minutesNo rounding to quarter hours.
  • Unpaid breaksBreaks you enter are subtracted.
  • Your rulesCheck your contract for limits and rates.

From hours to pay and dates

Hours worked feed into pay, and pay periods into calendars. These tools pick up where this one stops.

To turn an hourly rate into weekly, monthly or yearly pay, use the salary calculator. For working days between two dates, after weekends and holidays, try the working days calculator.

To add or subtract times of day and durations, the time calculator works in hours, minutes and seconds.

Common mistakes

  • Mistake: Writing 9-17.

    Instead: Write minutes too: 09:00-17:00.

  • Mistake: Counting a paid break as unpaid.

    Instead: Leave paid breaks out of the line.

  • Mistake: Splitting a night shift at midnight.

    Instead: Enter it as one line: 22:00-06:00.

Checking the method

A separate script re-works every golden value with Python's date and time library and exact fractions.

Read how we test our calculators, or browse more everyday tools.

Frequently asked questions

How do I calculate hours worked in a week?

Subtract each start from its end, take off breaks and add the shifts. The sample week is 44 h 45 min.

How are night shifts counted?

An end before the start runs past midnight: 22:00-06:00 with a 30-minute break is 7 h 30 min.

How is overtime worked out?

Hours above your weekly limit. After 40 hours the sample week has 4 h 45 min of overtime.

How is overtime pay calculated?

Overtime hours × hourly rate × the overtime multiple. At ₹250 and double time the week pays ₹12,375.00.

Is the timesheet saved anywhere?

Only in the page address after #, which is not sent to the server.

Sources and methodology

The formulas are standard time-value-of-money results. We check every figure against golden values worked out independently, by closed form and by month-by-month simulation; see the methodology.

Written and maintained by Nitin Raturi, a software engineer (about the author). Last reviewed 4 Nov 2026; next review due by . Found an error? Tell us.

Changelog

  • : Initial release.