⏱️ Duration Between Two Times

Quick Presets
-
-

➕ Add or Subtract Time

Start from any date/time and add or subtract a duration to find the resulting moment.

Duration to Add / Subtract
-
-

Work Hours Calculator

Calculate total working hours between two date-times, with options to exclude weekends and subtract a lunch break.

-
-

Frequently Asked Questions

The calculator subtracts the start timestamp from the end timestamp to get total milliseconds, then converts to days, hours, minutes and seconds. Example: from January 1, 2026 at 00:00 to January 10, 2026 at 14:30 = 9 days, 14 hours, 30 minutes. Total hours = (9 × 24) + 14.5 = 230.5 hours. Total minutes = 230.5 × 60 = 13,830 minutes. All calculations use your browser's local time zone and account for daylight saving time transitions automatically.
The breakdown (e.g., '2 days, 6 hours, 30 minutes') shows the duration decomposed into separate units - useful for understanding the span intuitively. Total hours expresses the entire duration in hours only: 2 days 6 hours 30 minutes = (2×24) + 6 + 0.5 = 54.5 total hours. Total minutes = 54.5 × 60 = 3,270. Total seconds = 3,270 × 60 = 196,200. Use total values for billing, SLA monitoring, payroll calculations, or any arithmetic that requires a single number.
When 'Exclude weekends' is enabled, Saturdays and Sundays are skipped entirely. For same-day calculations, if the date falls on a weekend, the result is 0 hours. For multi-day ranges, only Monday–Friday days contribute to the total. The break deduction applies across the working days in the range. This is the standard approach for payroll, freelance invoicing, SLA calculations and any context where 'business days' is the relevant unit.
This mode answers: 'If I start at [date and time] and add [X days, Y hours, Z minutes], what date and time do I arrive at?' Example: January 15, 2026 at 09:00 + 90 days + 8 hours = April 15, 2026 at 17:00. It accounts for varying month lengths (28–31 days) and leap years correctly. Subtract works the same way in reverse - useful for finding 'start by' dates from a fixed deadline. Common uses: visa stay limits, project deadlines, subscription renewals, trial periods, medication courses.
Yes - the calculator uses JavaScript's native Date object, which handles DST transitions automatically. When clocks spring forward 1 hour, a calendar day spanning that moment contains only 23 hours of elapsed time. When clocks fall back 1 hour, that day contains 25 hours. The calculator returns the correct elapsed time in both cases. Countries that do not observe DST (India, Japan, China) are not affected. For legal, medical or financial deadlines crossing a DST boundary, this calculator's result reflects wall-clock time - which is what contracts and courts use.
Gross pay = Net Work Hours × Hourly Rate. Net work hours = raw elapsed time minus break time. Enter your hourly rate and the calculator shows pre-tax gross earnings for the period. Important: this is simple multiplication and does not account for overtime multipliers (typically 1.5× for hours over 8 per day or 40 per week under US law), employer payroll taxes, superannuation, or any deductions. Use this figure as a starting point and apply your jurisdiction's payroll rules on top for an accurate final pay amount.
1 day = 24 hours = 1,440 minutes = 86,400 seconds. 1 week = 7 days = 168 hours = 10,080 minutes. 1 average month = 30.44 days = 730.5 hours. 1 standard year = 365 days = 8,760 hours = 525,600 minutes. 1 leap year = 366 days = 8,784 hours = 527,040 minutes. 1 US work year = 52 weeks × 5 days × 8 hours = 2,080 hours - the standard used for salary-to-hourly conversions. 1 work year minus 11 federal holidays ≈ 2,008 hours.
On average, a calendar month contains approximately 21.7 working days (260 working days per year ÷ 12 months). However, actual working days per month vary: months with 4 weekends and no holidays can have 20 or 23 working days depending on how the days fall. For payroll purposes: 173.3 hours/month is the standard (2,080 hours ÷ 12). For project planning, always count actual calendar working days rather than using the average - the difference can be 2–3 days per month.

Time Span Calculator - Duration Between Dates, Add/Subtract Time & Work Hours

Time calculations trip people up more than almost any other type of math - not because the arithmetic is hard, but because time has irregular units (months with different lengths, leap years, daylight saving transitions) that make mental math unreliable. This calculator handles all three of the most common time questions: how long between two moments, what time will it be after adding or subtracting a duration, and how many billable or payable hours sit between a clock-in and clock-out.

Three tools in one: Between Two Times - exact duration in days/hours/minutes/seconds plus total hours and total minutes · Add / Subtract Time - find any future or past date from a starting moment · Work Hours - net hours after break deductions with weekend exclusion and gross pay output

Duration Between Two Times - How It Works

The calculation subtracts the start timestamp from the end timestamp to get a raw millisecond difference, then converts that into human-readable units. The breakdown and total views serve different purposes:

  • Breakdown (days + hours + minutes + seconds): Best for understanding the span intuitively. "9 days, 2 hours, 30 minutes" is easier to grasp than a large number.
  • Total hours: Best for billing, SLA monitoring, payroll, and calculations like "how much do I earn at $45/hour over this period?" Convert by multiplying the fraction: 9 days 2 hours 30 minutes = (9 × 24) + 2 + (30 ÷ 60) = 218.5 total hours.
  • Total minutes: Useful for scheduling, transit times, cooking, and any calculation that works in minutes. 218.5 hours × 60 = 13,110 total minutes.
  • Total seconds: Used in programming, physics, sports timing, and technical calculations. 13,110 minutes × 60 = 786,600 total seconds.

Essential Time Conversion Reference

⏱️ Standard Time Conversions

  • 1 minute = 60 seconds
  • 1 hour = 60 minutes = 3,600 seconds
  • 1 day = 24 hours = 1,440 minutes = 86,400 seconds
  • 1 week = 7 days = 168 hours = 10,080 minutes
  • 1 month (avg) = 30.44 days = 730.5 hours
  • 1 year = 365 days = 8,760 hours = 525,600 minutes
  • 1 leap year = 366 days = 8,784 hours = 527,040 minutes
  • 1 decade = 3,652 or 3,653 days (depending on leap years)

Work Time Reference

  • 1 work day = 8 hours (standard) = 480 minutes
  • 1 work week = 5 days = 40 hours
  • 1 work month = ~21.7 days = ~173.3 hours
  • 1 work year (US) = 260 days = 2,080 hours
  • 1 work year minus holidays = ~249 days = ~1,992 hours
  • Hourly to annual: Rate × 2,080 = gross annual salary
  • Annual to hourly: Salary ÷ 2,080 = hourly equivalent
  • Half-time = 1,040 hours/year = 20 hours/week

Add / Subtract Time - Practical Uses

The add/subtract mode answers one of the most practically useful time questions: "If I start at this moment and add X days, Y hours and Z minutes - what date and time do I land on?" This sounds simple but becomes genuinely tricky when crossing month boundaries, year ends, or varying month lengths. The calculator handles all of this correctly:

  • Project deadlines: Start date + 90 days = exact due date (not 3 months - 3 calendar months vary from 89 to 92 days)
  • Visa and immigration: Entry date + 180-day stay limit = exact departure deadline
  • Medication and prescriptions: Start date + 14-day course = end date
  • Subscription renewals: Sign-up date + 30/60/90/365 days = exact renewal date
  • Trial periods: Start + 7 or 14 days = cancellation deadline
  • Loan and finance: Disbursement date + repayment term in days = final payment due date
  • Sports and fitness: Training start + 12-week programme = race day or target date
  • Backwards calculation (subtract): Event date − 60 days = "start preparation by" date

Work Hours Calculator - What Each Setting Does

The work hours mode is designed for freelancers, contractors, employers and HR teams who need an accurate billable or payable hours figure from a clock-in/clock-out time pair:

  • Raw hours: Simple difference between start and end timestamp - total elapsed time including any breaks.
  • Break deduction: Enter break time in minutes (e.g., 30 min lunch). Net hours = Raw hours − break. This is the billable or payable time.
  • Weekend exclusion: When checked, Saturday and Sunday are not counted. For a range that spans a weekend, only Monday–Friday days contribute to the total. Essential for SLA calculations, project billing, and business day timelines.
  • Gross pay: Net hours × your hourly rate. This is pre-tax gross - it does not account for overtime multipliers (1.5× or 2× for hours beyond 8/day or 40/week), superannuation, employer contributions, or any deductions. Use it as a starting figure and apply your jurisdiction's payroll rules on top.

Important: "Gross pay" displayed here is a simple multiplication and should not be used as a final payroll figure without accounting for overtime rules applicable in your country or state.

Daylight Saving Time - Why It Matters for Time Calculations

Most people do not think about daylight saving time (DST) when calculating durations - but it can shift a result by one hour in either direction. This calculator uses your browser's local Date object, which handles DST transitions automatically and correctly:

  • Spring forward (clocks advance 1 hour): A period spanning this transition contains one fewer hour than the calendar days suggest. A "24-hour" span across spring forward is actually 23 clock hours.
  • Fall back (clocks go back 1 hour): A period spanning this transition contains one extra hour. A "24-hour" span across fall back is actually 25 clock hours.
  • For countries that observe DST (United States, European Union, Australia, most of Canada), this matters most for calculations that cross March–April and October–November boundaries.
  • Countries that do not observe DST (India, Japan, China, most of Africa) are not affected - their time is constant year-round.

If you are calculating a time-critical deadline (legal, medical, financial) that crosses a DST boundary, this calculator's result is correct by wall-clock time - which is what courts, contracts and schedules refer to.

How this calculator works, and where the numbers come from

The Time Span Calculator applies the standard formula for this calculation to the values you enter and updates the result as you type. The calculation itself happens in your browser, and the page explains the method so you can check any result by hand.

Please note: Results are provided for general information and are calculated from the values you enter.

Sources and further reading

Last reviewed: by the CalcQube Editorial Team. See our editorial policy for how we build and check calculators, or report an error.