Skip to content
ΣCalcYeti

Days Until Calculator

Count calendar days to or since a target, with weeks, inclusive endpoints, and a calendar duration.

Content updated August 5, 2026

Calendar days until target
148
2026-08-05 → 2026-12-31
Complete weeks + days
21w 1d
Calendar duration
0y 4mo 26d
Both endpoints included
149 days
Decimal weeks
21.14

Calendar dates use the proleptic Gregorian rules supported by the browser. The whole-day interval is DST-safe; it does not count hours, business days, holidays, or an event-day cutoff.

Count whole calendar days from an explicit reference date to a target. A future target is shown as days until, a past target as days since, and the same date as zero elapsed days.

The main interval excludes the reference date and includes the future target, which matches elapsed calendar-day counting. A separate inclusive result counts both endpoints so event planners can use the convention they actually mean.

The Days Until formula

Signed days = target day ordinal − reference day ordinal · inclusive endpoint count = |signed days| + 1

Positive means a future target · negative means a past target · complete weeks = floor(|days| ÷ 7) · remaining days = |days| mod 7.

Worked example

From August 5, 2026 to August 20, 2026, the signed interval is +15 calendar days: two complete weeks and one remaining day. Counting both endpoints gives 16 dates.

Assumptions, rounding, and limitations

Assumptions

  • Both inputs are valid Gregorian calendar dates without a time of day.
  • The headline interval excludes the reference date and includes a future target date.
  • The inclusive count includes both dates, even when they are the same date.
  • Every calendar date counts; weekends and holidays are not removed.

Rounding: Calendar days, inclusive dates, complete weeks, and remaining days are exact whole counts. Decimal weeks display to two decimal places.

Limitations

  • Does not model hours, minutes, time zones, daylight-saving cutoffs, business days, holidays, countdown clocks, or event start times.
  • Date ranges are limited to 100 years and use the browser's proleptic Gregorian calendar behavior.

Sources

Calendar dates without daylight-saving surprises

The calculator parses year, month, and day as Gregorian calendar fields, then compares UTC day ordinals. That keeps a daylight-saving clock change from turning one local calendar day into 23 or 25 counted hours.

The U.S. Naval Observatory states the Gregorian leap-year rule: years divisible by four are leap years, except century years not divisible by 400. Therefore 2000 was a leap year, while 1900 and 2100 are not.

Elapsed and inclusive counts answer different questions

From August 5 to August 20, 15 calendar days elapse. Counting August 5 and August 20 themselves produces 16 calendar dates. Both are valid conventions, but they should not be mixed silently.

The year-month-day duration is a calendar decomposition, while complete weeks simply divide the absolute day total by seven. Neither result excludes weekends or holidays.

Frequently asked questions

Does the count include today or the reference date?

The headline elapsed count excludes the reference date. Use the separate both-endpoints result when the reference and target dates should both count.

Can the target date be in the past?

Yes. The same absolute interval is labeled days since, while the signed calculation remains negative internally.

Are weekends and holidays included?

Yes. Every calendar date is counted. Use the Business Days Calculator when weekends and entered holidays need different treatment.

Does daylight saving time change the answer?

No. The calculator compares date-only day ordinals rather than dividing a local clock-hour interval by 24.

Why can years and months differ from decimal years?

Calendar months have different lengths. The duration consumes full calendar years, then full calendar months, then remaining days instead of assuming one average month length.

Related calculators

Disclaimer: Days Until Calculator results are estimates for general information and education only, and are not financial, tax, legal or medical advice. Verify important decisions with a qualified professional.