NHRepon
Home
Services
All ServicesWeb Application DevelopmentMobile Application DevelopmentDigital Marketing and SEO
ProjectsToolsProductsPostsAboutContactLogin
HomeServicesProjectsToolsProductsPostsAboutContact
  • Home
  • Projects
  • Posts
Home/Tools/Calculators/Hours Calculator
All Tools

Hours Calculator

Work out the hours between two times, add up a timesheet of shifts with breaks, and turn the total into pay — handling shifts that run past midnight.

1
8h 00m
Total time
8h 00m
Decimal hours
8.00
Shifts
1
Gross pay
—

Decimal hours are what most payroll systems want: 7h 30m is 7.50. Gross pay is the decimal figure multiplied by the rate, before tax, deductions, overtime and holiday rules — none of which this tool knows about.

Working out a shift, and the midnight problem

The arithmetic is simple subtraction once both times are the same unit — minutes since midnight — but there are two places it goes wrong. Breaks are usually unpaid and come off the total, so 09:00 to 17:30 with a thirty-minute lunch is seven and a half hours, not eight and a half. And a shift that runs past midnight ends on a smaller clock value than it started: reading 20:00 to 04:00 as a plain subtraction gives minus sixteen hours. Adding a day when the end time precedes the start is the fix, and it is what this tool does.

The trap for anyone counting hours by hand is the difference between decimal hours and minutes. Payroll systems multiply by the hourly rate, and the rate is per hour, so the figure must be in decimal hours. Seven hours and thirty minutes is 7.50, not 7.30 — a mistake that understates pay by twenty minutes' worth on every shift, which becomes a working-day's pay over a year. The decimal figure is shown separately for that reason.

Two things this tool deliberately does not do. It does not know your contract: overtime thresholds, paid breaks, night-shift supplements, weekend rates and statutory holiday entitlements all vary by employer and jurisdiction, and none can be inferred from a list of times. And it counts the time between two clock times on a single day, so a shift spanning more than twenty-four hours is outside its scope. For anything that has to reconcile against a payslip, a proper timekeeping system is the right tool.

What does an hours calculator do?

An hours calculator finds the amount of time between two clock times, and adds several such spans into a total. That is the whole job, and it is done properly in two places where hand arithmetic usually is not: subtracting an unpaid break, and handling a shift that runs past midnight. Give it a start time, an end time and a break, and it returns the hours and minutes worked, the same figure in decimal hours, and the gross pay if you supply a rate.

Several shifts can be entered at once, which is what turns it from a single subtraction into a timesheet. Each row is independent, the total is summed across all of them, and the decimal figure is what payroll systems actually multiply by the rate. The distinction between hours-and-minutes and decimal hours is the one most often got wrong by hand: seven hours and thirty minutes is 7.50 in decimal, not 7.30, and using the wrong one understates a day's pay by twenty minutes' worth.

The calculator deliberately stops at the arithmetic. It does not know your contract, so overtime thresholds, paid breaks, night-shift supplements, weekend rates and statutory holiday entitlements are all outside its scope — as is any deduction, tax or contribution. The total it produces is the raw time worked, which is the input those rules need and not a replacement for them.

How to calculate hours worked

  1. Enter the start and end time of the first shift. Overnight shifts are handled: an end time earlier than the start is read as the next day.
  2. Put the unpaid break in minutes — a thirty-minute lunch is 30, not 0.5. It is subtracted from the shift length.
  3. Press Add another shift for each further day, and the running total updates as you type.
  4. Read the two totals: hours and minutes for the schedule, and decimal hours for the payroll system.
  5. Optionally enter an hourly rate. The gross pay figure is the decimal hours multiplied by that rate, before any deduction.
  6. Reset before starting a fresh week, since the tool has no memory of past entries and does not save anything.

Hours Calculator limits and rules

Limits, caps and standards referenced by this tool
ItemLimit
ShiftsAs many rows as you need, each with its own break
BreakEntered in whole minutes and subtracted from the shift
OvernightAn end time before the start is treated as the following day
OutputsHours and minutes, decimal hours, shift count and gross pay
RateOptional, used only to multiply out a gross figure
Time zoneIrrelevant — the calculation is between two clock times on one day
Not modelledOvertime, paid breaks, shift premiums, tax, deductions and holiday entitlement
Shifts over 24 hoursNot supported; each row is a single day's span

When to use it

  • Totalling a week of shifts from a handwritten clock-in sheet before submitting it.
  • Checking a payslip by working out the hours it should have been calculated from.
  • Converting hours and minutes into decimal hours for a form that demands the latter.
  • Working out how long a task, a drive or an event actually took, and how much to charge for it.
  • Adding up freelance hours across several clients to invoice each one separately.

Is it private?

The arithmetic runs in your browser and nothing is submitted, so no timesheet, rate or pay figure is sent anywhere. There is no account and no stored history; closing the tab discards everything.

Frequently asked questions

Because decimal hours divide the minute figure by sixty, not by a hundred. Thirty minutes is half of an hour, so it is 0.50; forty-five minutes is three quarters, so 0.75. Writing 7.30 would mean seven hours and eighteen minutes, which is why the two figures are never interchangeable. Payroll systems multiply the hourly rate by decimal hours, so this conversion is not a stylistic choice — using the wrong number changes the amount paid.

By adding a day when the end time is earlier than the start. A plain subtraction of 20:00 from 04:00 gives minus sixteen hours, which is nonsense as a duration. The tool reads that combination as a shift that ran past midnight and computes it as eight hours instead. What it cannot detect is a shift of more than twenty-four hours, since a row is one start time and one end time; for a span that long, split it across two rows.

Only unpaid ones, and that is a question about your contract rather than about arithmetic. Many jurisdictions require a rest break after a certain number of hours and allow it to be unpaid, which is the case the field is built for. If your breaks are paid, leave the field at zero and the shift length stands as it is. Getting this backwards is one of the commonest causes of a timesheet that disagrees with a payslip by half an hour a day.

No, and it deliberately does not try. Overtime rules differ by country, by industry and by contract: some apply after forty hours in a week, some after eight in a day, some only after six consecutive days, and the rates and exemptions differ again. None of that can be inferred from a list of clock times. Enter each shift here to get the hours, then apply your own overtime rule — or use a payroll system that knows it.

Yes, and the pay field is really a billing field in that case: enter your hourly rate and the gross figure is what to invoice at that rate, before tax. The caution is the same one, with one addition: billable hours are often not the same as hours worked, since some clients round to the nearest quarter hour, some have a minimum billing period, and some treat travel or waiting time differently. Round the figures to whatever your agreement says before sending the invoice.

Almost always because one of the time fields is empty or its break is larger than the shift itself. An empty start or end time produces a dash in that row rather than a number, and the total ignores incomplete rows. A break longer than the shift is floored at zero rather than producing a negative duration. Check the individual row figures first: if a row shows a value and the total looks wrong, the row is not the problem.

Related tools

  • Date Difference Calculator
  • Age Calculator
  • Percentage Calculator
  • Study Timer
  • Unit Converter

Written and maintained by Md. Nur Hossain Repon.

NHRepon


Md. Nur Hossain Repon expert in NextJS, React, React Native and Flutter. He is a full-stack web and mobile application developer with 5+ years of experience and a passion for building innovative and robust application. Also, he has a strong background in developing high-quality web and mobile applications using the latest technologies and frameworks.
Let's build something amazing together 🚀

Quick Links


  • About
  • Projects
  • Services
  • Contact
  • Posts
  • Products
  • Privacy Policy
  • Terms of Service
  • Tools
  • Smart Life Hubs

Newsletter


We respect your privacy. Unsubscribe anytime.

Connect


© 2026 NHRepon. All rights reserved.

Build v1.5.4+56.73c4a90