Day Counter Calculator

Count days between two dates and convert the result to weeks, months, years, and business days.

Time & Date Two dates Days + business days
Rate this calculator · 5.0 (1)

Day Counter Calculator

Pick a start and end date to see days, weeks, months, years, and business days between them.

Instructions — Day Counter Calculator

  1. Pick a start date.
  2. Pick an end date. Use the quick-pick buttons for fast offsets (+30, +90, +365 days).
  3. Toggle whether to include the end date in the count. Inclusive adds 1 to the total.
  4. The headline shows total calendar days. Stat boxes break the total down into weeks, months, years, business days, hours, and minutes.

Formulas

Calendar days = floor((end − start) ÷ 86,400 seconds) + (1 if inclusive)

Weeks = days ÷ 7

Months (approx.) = days ÷ 30.4375

Years (approx.) = days ÷ 365.25 (averages a 4-year leap cycle)

Business days = days minus Saturdays and Sundays in range

Reference

  • 1 week = 7 calendar days = 5 business days
  • 1 month = 30.4375 days on average
  • 1 quarter = ~91.3 days
  • 1 year = 365.25 days averaged over a 4-year leap cycle
  • Leap year = divisible by 4, except 100, except 400 (so 2000 was, 1900 was not)
  • Pregnancy = 280 days from LMP = 40 weeks
  • Federal holidays = 11 paid per year (OPM)

Article — Day Counter Calculator

Day Counter Calculator: Count Days Between Dates

A day counter calculates the number of calendar days between two dates and converts the result into weeks, months, years, hours, and business days. The default formula is (end − start) in days, with an optional +1 when counting inclusively. From January 1 to December 31 is 364 exclusive days or 365 inclusive ”” the same year viewed two ways.

Day counting underpins contracts, court filings, project plans, pregnancy due dates, prescription cycles, and any process where "how many days" matters. The Gregorian calendar ”” the international civil calendar published by the Vatican in 1582 ”” defines the rules. Britannica notes its average year length is 365.2425 days, achieved through the rule that century years are leap years only when divisible by 400.

What the day counter does

The day counter takes two dates and produces a calendar-day count along with derived metrics. The headline is total days. The grid below shows weeks (days ÷ 7), months (decimal and calendar-exact), years (decimal), business days excluding weekends, and the equivalent in hours and minutes.

The U.S. Naval Observatory maintains the authoritative Julian Date converter that astronomers and mission planners use for the same kind of day arithmetic at higher precision. For civil purposes, the millisecond arithmetic in modern browsers is accurate within a single second over centuries.

Did you know

Pregnancy is dated 280 days from the last menstrual period (LMP), not from conception. That is exactly 40 weeks, which is how obstetricians describe gestational age. Day counters built into clinical software always include the start day, an example of inclusive counting in everyday use.

The day counter formula

Most modern languages compute date differences in milliseconds and divide. The calculator does the same, then layers on the conversions.

Day counter math
Days = floor((end − start) ÷ 86,400 s) [+1 if inclusive]
Weeks = Days ÷ 7
Months = Days ÷ 30.4375
Years = Days ÷ 365.25
Business days = Days − Saturdays − Sundays

The constants 30.4375 and 365.25 are averages. 30.4375 is 365.25 ÷ 12; 365.25 is the average over a 4-year leap cycle. For exact month or year counts crossing calendar boundaries, the calculator also reports a calendar-aware breakdown: whole months plus remaining days.

Inclusive vs. exclusive day counting

"From Monday to Friday, how many days?" is ambiguous. Counted exclusively (the duration between two timestamps), it is 4 days. Counted inclusively (both endpoints count), it is 5 days. Neither answer is wrong; they answer different questions.

Tip

Use inclusive counting for events, billing days, and trial periods where both endpoints carry consequences. Use exclusive counting for durations and intervals where you measure elapsed time.

The calculator exposes both modes with a single toggle. The result label notes which one is active so the choice is transparent in any saved screenshot or copy-paste.

Business days vs. calendar days

Calendar days include weekends. Business days do not. A typical month has roughly 22 business days against 30 calendar days, a 27% reduction. Court rules, payment terms, and shipping commitments often specify business days, so converting one to the other is a routine task.

CAL
30 days
30 calendar
incl. weekends
BIZ
22 days
22 business
Mon”“Fri only

Federal holidays in the United States ”” 11 by OPM count ”” further reduce business days. A 30-day calendar window spanning Thanksgiving and Christmas typically nets only 19”“20 working days. The day counter excludes weekends but not holidays; combine its output with the OPM holiday calendar if you need a net working-days figure.

Leap years and the day count

The Gregorian leap rule has three parts. A year is a leap year if it is divisible by 4, with the exception that years divisible by 100 are not, except that years divisible by 400 are. So 2000 was a leap year, but 1900 was not. The pattern gives 97 leap days every 400 years and an average year length of 365.2425 days ”” accurate to about 3 seconds against the tropical year.

âš  Watch the February 29 edge case

A range that straddles February 29 in a leap year contains one more day than the same calendar range in a non-leap year. Spreadsheets and homemade scripts that hard-code 365 days per year quietly under-count by a day every four years. The calculator uses the actual date arithmetic, so this is automatic.

Day counter use cases

The same calculation supports very different decisions.

  • Contract durations = lease start to lease end
  • Project deadlines = today to delivery, in business days
  • Travel countdowns = today to departure
  • Pregnancy & due dates = LMP + 280 days
  • Interest accrual = day-count conventions (Actual/360, 30/360)
  • Visa & passport rules = 90-day rolling windows

Months and years from days

Months and years are not constant-length units. February has 28 or 29 days; July has 31. The calculator reports both a decimal approximation and a calendar-exact breakdown. For 100 days starting May 14, 2026, the breakdown is 3 months and 8 days; the decimal approximation is 3.29 months. The two are equivalent answers in different formats.

For financial day-count conventions ”” Actual/360, Actual/365, 30/360 ”” the calculator outputs total days. Apply the convention separately by adjusting the denominator or the day-counting rule itself.

Common day-counting mistakes

The classic errors come from the fence-post problem.

  • Off-by-one = forgetting +1 in inclusive counting
  • Time-zone shift = midnight rollover changes the date
  • Hardcoded 365 d/yr = misses Feb 29
  • Mixing business and calendar = "10 working days" interpreted as calendar
  • End before start = negative answer hidden in a chart
  • DST illusion = a 25-hour day still counts as one day

State the counting rule when reporting the result. "30 days inclusive starting May 14" leaves no room for misinterpretation; "30 days from May 14" is ambiguous between exclusive and inclusive readings, and a contract dispute often turns on the difference.

Software developers face a similar problem with array indexing. Most modern languages start arrays at index 0, which means the third item sits at position 2. The "fence post" mental model ”” 30 fence sections need 31 posts ”” bridges the gap between intuition and code. Day counters are the daily-life version of the same problem, which is why even experienced operations teams still get caught on it from time to time.

FAQ

Subtract the start date from the end date. If you want to include both endpoints, add 1. The day counter does both automatically with a toggle for inclusive vs. exclusive.
Exclusive counts the days that pass between two dates (Jan 1 to Jan 4 = 3 days). Inclusive counts both endpoints (Jan 1 to Jan 4 = 4 days). Contracts and trial periods usually use inclusive; durations and intervals usually use exclusive.
It uses millisecond arithmetic on actual dates, so February 29 is automatically counted in leap years. 2024 and 2028 each contain 366 days; 2025, 2026, and 2027 each contain 365.
A business day is a weekday, Monday through Friday. The calculator subtracts Saturdays and Sundays from the total. It does not subtract public holidays — use the U.S. OPM federal-holiday list separately if you need that adjustment.
Yes. If you enter the end date before the start date, the calculator detects the reversal and reports the absolute number of days, flagging the result as reversed in the formula display.
Months are reported two ways: a decimal (days divided by 30.4375 average) and a calendar-aware breakdown (whole months plus remaining days). The second is exact, the first is an approximation suitable for finance and gestation calculations.