Time Calculator
How much time between two dates and times?
Calculate time duration between two dates and times, or add and subtract time periods to find when events start or end.
—
Send feedback
💡 Share your idea or report a problem
✓ Thanks! We'll take a look.
Learn more
How It Works
The formula, explained simply
Time calculations work like a digital stopwatch that can span multiple days and weeks. When you enter a start time of Monday 9:00 AM and end time of Wednesday 3:30 PM, the calculator counts every minute in between — including overnight hours and full calendar days. Unlike simple arithmetic, time calculations must handle the irregular structure of our calendar system.
The calculator converts your dates and times into milliseconds since January 1, 1970 (Unix epoch time), performs the subtraction, then converts back to readable days, hours, and minutes. This method automatically handles month boundaries, leap years, and varying month lengths without manual adjustment.
Business day calculations run a separate counter that examines each calendar day individually. Starting from your begin date, it advances day by day until reaching your end date, counting only Monday through Friday. This gives you a precise count for project planning and work scheduling that excludes weekends automatically.
When To Use This
Right tool, right situation
Use time calculators for project deadlines where you need exact countdowns, especially when the period spans multiple weeks or months. They excel at calculating billable hours for consulting work, determining equipment rental costs, and planning event schedules that cross multiple days. Travel planning benefits from precise duration calculations when coordinating flight connections or road trip timing.
Time calculators work best for fixed, scheduled activities with definite start and end points. They handle vacation planning, construction project timelines, and academic semester planning where dates are firm and unchanging.
Do not use time calculators for flexible or variable activities. They cannot account for breaks, interruptions, or changing work patterns. For estimating how long tasks will take when you can start and stop freely, use productivity planning methods instead. Time calculators also cannot handle activities that naturally expand or contract based on circumstances, like creative projects or research work.
Common Mistakes
Why results sometimes look wrong
The most common mistake is mixing time zones without realizing it. If your start time is in Eastern Time but your end time represents Pacific Time, the calculator will show three hours less duration than reality. Always verify both times use the same time zone, especially for remote meetings or cross-country travel planning.
Many people forget that time calculations include overnight hours. A Friday 6:00 PM to Monday 8:00 AM duration includes the entire weekend — 62 hours total, not just 14 work hours. This catches people off-guard when calculating overtime pay, event staffing costs, or equipment rental periods that span multiple days.
Business day calculations confuse users who expect them to subtract weekend time from the total duration. Instead, business days count how many workdays fall within your time period. A Monday-to-Friday span always shows 5 business days, even if your actual start and end times only cover 20 work hours. Use business days for deadline counting, not duration measurement.
The Math
Worked examples and deeper derivation
Time duration mathematics relies on the consistent base unit of milliseconds. Each second contains 1,000 milliseconds, each minute contains 60 seconds (60,000 milliseconds), and each hour contains 3,600 seconds (3,600,000 milliseconds). Days contain exactly 86,400,000 milliseconds, regardless of the month or year.
To calculate total hours, the system divides total milliseconds by 3,600,000. For mixed duration display (days, hours, minutes), it uses modular arithmetic: remaining minutes equal total minutes modulo 60, remaining hours equal total hours modulo 24. This ensures that 90 minutes displays as 1 hour, 30 minutes instead of 1.5 hours.
Business day calculations cannot use simple arithmetic because weekends create gaps in the sequence. The algorithm steps through each calendar date, checking if the day-of-week number falls between 1 (Monday) and 5 (Friday). Saturday returns 6, Sunday returns 0, so the counter skips both. This method works accurately across month boundaries and year transitions without special handling.
Expert Unlock
The thing most explanations skip
Professional schedulers know that time calculations become unreliable across time zone boundaries and during daylight saving transitions. The standard approach assumes continuous time flow, but twice yearly, clocks jump forward or backward by one hour. This creates duration errors of exactly 60 minutes for periods that cross spring-forward or fall-back dates, requiring manual adjustment for precision scheduling.
How accurate are time duration calculations?
Need something this doesn't cover?
Suggest a tool — we'll build it →