⏱️ Time Span Calculator
Calculate the exact duration between any two dates and times in days, hours, minutes and seconds. Add or subtract any time amount from a given moment to find a future or past date. Compute net work hours with break deductions and weekend exclusion - plus gross pay from your hourly rate. All three tools in one place.
⏱️ Duration Between Two Times
➕ Add or Subtract Time
Start from any date/time and add or subtract a duration to find the resulting moment.
💼 Work Hours Calculator
Calculate total working hours between two date-times, with options to exclude weekends and subtract a lunch break.
❓ Frequently Asked Questions
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.
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.