Calculatorby CodingMarble
All calculators

Hours Calculator

Enter your start time, end time and unpaid break to get the hours worked. Add days per week and an hourly rate to see weekly and monthly hours, overtime and pay.

An end time earlier than the start counts as an overnight shift.
min
India's Factories Act uses 48 hours a week; the US uses 40.
×

Your result appears here.

What is an hours calculator?

An hours calculator tells you how many hours and minutes you worked between a start time and an end time, after taking off an unpaid lunch or tea break. This online hours calculator also multiplies your daily hours into a weekly, monthly and yearly total, splits regular hours from overtime, and – if you enter an hourly rate – works out your pay. It handles overnight shifts that cross midnight, so night-shift staff, nurses, security guards and BPO teams get the right answer too.

How to use the hours calculator

  1. Start time – when you clock in, e.g. 09:00.
  2. End time – when you clock out, e.g. 18:00. If you finish after midnight, just enter the clock time (e.g. 02:00); the calculator treats it as the next day.
  3. Unpaid break – lunch and other unpaid breaks in minutes. Leave 0 if breaks are paid.
  4. Days worked per week – 5 for a Monday–Friday job, 6 for most Indian shops and factories. Half days (5.5) are allowed.
  5. Overtime threshold and rate – optional. Add your hourly rate and overtime multiplier to turn this into an hours calculator for pay and payroll.

How to calculate hours between two times

The hours calculator formula is:

Hours worked = (End time − Start time) − Break

  • Convert both times to minutes after midnight: hours × 60 + minutes.
  • If the end time is earlier than the start time, add 1,440 minutes (24 hours) to the end time – that is an overnight shift.
  • Subtract the break in minutes, then divide by 60 for decimal hours.

Worked example

You work from 9:00 AM to 6:00 PM with a 30-minute lunch. 18:00 − 9:00 = 9 hours = 540 minutes. 540 − 30 = 510 minutes = 8 hours 30 minutes, or 8.5 decimal hours. Over 5 days that is 42.5 hours a week, about 184 hours a month and 2,210 hours a year. At ₹250 an hour you earn ₹2,125 a day and ₹10,625 a week, roughly ₹46,042 a month.

Overnight shift example

A night shift from 10:00 PM to 6:30 AM with a 45-minute break: 6:30 + 24:00 = 30:30. 30:30 − 22:00 = 8 h 30 min, minus 45 minutes = 7 hours 45 minutes (7.75 decimal hours).

Hours and minutes to decimal hours

Payroll software and timesheets use decimal hours, because you cannot multiply "8:30" by a pay rate directly. Divide the minutes by 60 and add them to the hours: 8 h 30 min = 8.5 h, 7 h 45 min = 7.75 h, 7 h 20 min = 7.33 h. The table helps if you calculate hours by hand:

MinutesDecimalQuarter-hour rounding
0–70.00–0.120.00
8–220.13–0.370.25
23–370.38–0.620.50
38–520.63–0.870.75
53–600.88–1.001.00

Some employers round clock-in and clock-out times to the nearest quarter hour (the "7-minute rule"). A quarter hours calculator approach like the table above keeps rounding fair both ways.

Weekly and monthly work hours

To get weekly hours, multiply daily hours by the number of days worked. For monthly hours, multiply weekly hours by 52 and divide by 12 (about 4.33 weeks per month) – using 4 weeks understates the month. A standard 40-hour week is about 173 hours a month and 2,080 hours a year. If your hours change day to day, calculate each day separately here and add them up, or use the time calculator to add the daily durations into a weekly timesheet total.

Working hours rules in India

A working hours calculator for India should reflect local limits. As of 2026, the key rules are:

  • Factories Act, 1948 – a maximum of 9 hours a day and 48 hours a week for adult workers, with a rest break of at least 30 minutes after 5 hours. Overtime is paid at twice the ordinary rate.
  • Labour codes – the Code on Wages and the Occupational Safety, Health and Working Conditions Code, which came into force in November 2025, keep the 48-hour weekly limit and double-rate overtime, and let states allow longer daily hours (up to 12 hours with a spread-over) within that weekly cap.
  • Shops and Establishments Acts – each state sets its own daily hours, weekly holiday and overtime rules for offices, shops and IT companies, so check your state's Act or your appointment letter.

In the United States, the Fair Labor Standards Act requires overtime at 1.5 times the regular rate after 40 hours a week. Set the overtime threshold to 40 and the multiplier to 1.5 to use the calculator that way.

Hours to pay: salary and hourly rate

Pay = regular hours × rate + overtime hours × rate × overtime multiplier. For a monthly salary, you can find your effective hourly rate by dividing the monthly salary by monthly hours: ₹40,000 ÷ 184 hours ≈ ₹217 an hour. To see what lands in your bank account after PF, professional tax and TDS, use the salary calculator.

Converting hours to minutes and days

  • Hours to minutes: multiply by 60 (8.5 h = 510 min).
  • Minutes to hours: divide by 60 (135 min = 2.25 h).
  • Hours to days: divide by 24 for calendar days (72 h = 3 days), or by 8 for working days (40 h = 5 working days).

To count hours between two dates rather than two clock times, find the days with the date calculator and multiply by 24.

Tips for accurate timesheets

  • Record clock-in and clock-out times the moment they happen; memory rounds generously.
  • Note unpaid breaks separately so they are not double-counted.
  • Write overnight shifts against the day they started.
  • Keep decimal hours to two places for payroll to avoid rounding drift over a month.

Hours calculator using time: start and end

An hours calculator using time needs only the clock-in and clock-out. Enter 9:30 AM and 6:15 PM with a 45-minute break and the result is 8 hours, or 8.00 decimal hours. This hours calculator from time also handles night shifts that end after midnight.

Hours calculator from date: shifts across several days

For an hours calculator from date to date, count the full days between the dates and multiply by 24, then add the clock difference. From Monday 8:00 AM to Wednesday 2:00 PM is 2 days (48 hours) plus 6 hours, so 54 hours. The date calculator counts the days for you when you need hours calculator between dates totals.

Hours calculator for week, month and year

Run the hours calculator for each day of the week and add the results: five shifts of 8 hours 30 minutes give 42 hours 30 minutes, or 42.5 hours. For hours per year, multiply weekly hours by 52: a 40-hour week is 2,080 hours a year, and a 48-hour week is 2,496 hours.

Hours calculator addition: adding hours and minutes

For hours calculator addition, add minutes first and carry each 60 minutes into an hour: 7:45 + 8:30 + 6:50 = 21 hours 125 minutes = 23 hours 5 minutes. As an hours calculator add tip, converting each shift to decimal hours first (7.75 + 8.5 + 6.83) avoids carrying mistakes.

Hours calculator in decimal

The hours calculator in decimal output divides minutes by 60: 15 minutes = 0.25, 20 minutes = 0.33, 30 minutes = 0.5, 45 minutes = 0.75. So 7 hours 20 minutes is 7.33 hours. Payroll software expects this decimal format, not 7.20.

Hours calculator for a job and logbook

For any job billed by time, an hours calculator logbook is just a daily list of start, end and break times with the total for each day. Keep one line per shift, total it weekly, and multiply the decimal hours by the hourly rate for pay; the salary calculator turns that into monthly take-home pay.

Truck driver hours calculator for QLD

Queensland follows the national Heavy Vehicle National Law. Under standard hours for a solo truck driver, a QLD work diary must show no more than 12 hours of work in any 24-hour period and at least 7 continuous hours of stationary rest, with shorter limits inside that day. Use a truck driver hours calculator like this one to total each shift, and check the NHVR rules for your exact scheme.

JCB hours calculator India

JCB and other earth-moving machines in India are usually hired per hour, read from the hour meter. As a JCB hours calculator, subtract the opening meter reading from the closing reading (for example 1,254.6 − 1,249.9 = 4.7 hours), or enter start and end time here, then multiply by the agreed rate.

Hours kaise calculate kare

Hours kaise calculate kare: end time minus start time, then break minus. Example: 10:00 se 7:00 PM tak kaam, 1 ghanta break = 8 hours. Minutes ko decimal banane ke liye 60 se divide karein (30 minute = 0.5 hour).

Hour zone calculator: shifts across time zones

If a shift starts in one time zone and ends in another, convert both times to the same zone before using the hour zone calculator logic here. India (IST, UTC+5:30) has no daylight saving, which keeps remote shifts with India simple for most of the year.

Hours calculator India: free, no download

This hours calculator is free to use in India and everywhere else, with no hours calculator download or sign-up needed. It opens on any phone, so you can log hours and minutes right after a shift.

Best hours to sleep after a night shift

Adults generally need at least 7 hours of sleep. After a shift ending at 6:00 AM, sleeping from 7:00 AM to 2:00 PM gives 7 hours; use the calculator above in clock mode to check any sleep window.

Frequently asked questions

How do I calculate hours worked between two times?

Subtract the start time from the end time, then subtract unpaid breaks. From 9:00 to 18:00 with a 30-minute lunch is 8 hours 30 minutes, or 8.5 decimal hours.

How do I calculate hours for an overnight shift?

Add 24 hours to the end time before subtracting. A 22:00 to 06:30 shift is 30:30 − 22:00 = 8 hours 30 minutes, then take off the break. The calculator does this automatically when the end time is earlier than the start.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add to the hours. 7 hours 45 minutes = 7 + 45/60 = 7.75 hours.

How many work hours are in a month?

Multiply weekly hours by 52 and divide by 12. A 40-hour week is about 173 hours a month; a 48-hour week is 208 hours.

What are the legal working hours in India?

Under the Factories Act and the labour codes, adults can work up to 48 hours a week, with overtime paid at twice the normal wage. Daily limits and office rules vary by state Shops and Establishments Act.

How do I calculate pay from hours?

Multiply regular hours by your hourly rate, and overtime hours by the rate times the overtime multiplier (2× in India, 1.5× in the US). Enter your rate in the calculator to see daily, weekly and monthly pay.

Does the break count as working time?

Only if your employer pays for it. Enter unpaid breaks in minutes so they are deducted; enter 0 if breaks are paid.

How many hours are in a working year?

A 40-hour week over 52 weeks is 2,080 hours. Subtract paid leave and holidays for the hours actually worked.

How do I add hours and minutes together?

Add the minutes, carry every 60 minutes into one hour, then add the hours. 7:45 + 8:30 = 16:15.

How do I calculate hours between two dates?

Multiply the full days between the dates by 24 and add the difference between the clock times. Monday 8 AM to Wednesday 2 PM is 54 hours.

Last updated 2026-09-18

Related calculators

Designed & built with care by This calculator site, LovePDF and LoveImage are made in India by the CodingMarble team — websites, web apps and SEO-first tools.Visit CodingMarble