Days Until Calculator

Days Until Calculator

Leading AI Skill PRO

Enter Calculation

Leave blank to count to the next holiday.

Formula

Days Until=JDN(Target Date)−JDN(From Date)\text{Days Until} = \text{JDN}\!\left(\text{Target Date}\right) - \text{JDN}\!\left(\text{From Date}\right)
Usage stats

Advertisement

Results

39 days until Christmas (Friday, December 25, 2026)

As of

39Days
00Hours
00Minutes
00Seconds
Date Friday, December 25, 2026
Days (absolute) 39
Weeks 5.57
Weeks and days 5 weeks 4 days
Hours 936
Minutes 56,160
Sundays until then 5

Upcoming dates

Year Date Days left
2026 Friday, December 25, 2026 39
2027 Saturday, December 25, 2027 404
2028 Monday, December 25, 2028 770

Report an error on this page

What is the Days Until Calculator?

The Days Until Calculator tells you exactly how many days remain between today (or any "from" date) and a target date in the future. It is perfect for counting down to a holiday, birthday, wedding, exam, product launch, vacation, or any deadline. If the target date is in the past, the tool instead reports how many days have already passed.

How to use it

Pick your target date — the day you are counting toward. The from date defaults to today, but you can change it to measure the gap between any two dates. Press calculate and you'll see the number of days remaining, plus the equivalent number of weeks. The calculation is calendar-accurate and automatically handles leap years and month lengths.

The formula explained

The calculator converts each date into a Julian Day Number (JDN) — a single integer counting days from a fixed reference point. Because each date becomes one number, finding the gap is a simple subtraction:

$$\text{days} = \text{JDN}(\text{target}) - \text{JDN}(\text{from})$$

This avoids the headaches of varying month lengths and leap years that come with manual counting.

Advertisement
Timeline showing the gap between today and a target date
Days left is the count of days between today and the target date.

Worked example

Suppose today is 1 January 2024 and your target is 31 December 2024. The JDN of 31 Dec 2024 minus the JDN of 1 Jan 2024 equals 365 — because 2024 is a leap year, the full span from Jan 1 to Dec 31 is 365 days (the year has 366 days, but the difference between its first and last day is 365). The calculator returns 365 days, or about 52.14 weeks.

$$\text{days} = \text{JDN}(\text{31 Dec 2024}) - \text{JDN}(\text{1 Jan 2024}) = 365$$
Calendar grid with start and target days highlighted and days between shaded
Counting the shaded days from start to target gives the days remaining.

More Worked Examples

Each example converts both calendar dates to a Julian Day Number (JDN) — a plain integer count of days — subtracts them, and then divides the result by 7 to express the same span in weeks. All dates below use the Gregorian calendar, the civil calendar used in most of the world today.

Example 1 — Countdown to Christmas

From 17 September 2026 to 25 December 2026:

$$\text{JDN}(2026\text{-}12\text{-}25) = 2{,}461{,}400 \qquad \text{JDN}(2026\text{-}09\text{-}17) = 2{,}461{,}301$$$$\text{Days Until} = 2{,}461{,}400 - 2{,}461{,}301 = 99 \text{ days}$$$$\text{Weeks} = \frac{99}{7} = 14.142857\ldots \approx 14.14 \text{ weeks}$$

So Christmas 2026 is 99 days away — 14 full weeks plus 1 day. You can sanity-check this without JDNs: 13 days left in September, plus 31 (October) + 30 (November) + 25 (December) = 99.

Example 2 — A date in the past

From 17 September 2026 back to 1 January 2026:

$$\text{JDN}(2026\text{-}01\text{-}01) = 2{,}461{,}042 \qquad \text{JDN}(2026\text{-}09\text{-}17) = 2{,}461{,}301$$$$\text{Days} = 2{,}461{,}042 - 2{,}461{,}301 = -259$$$$\text{Weeks} = \frac{259}{7} = 37.0 \text{ weeks exactly}$$

The negative sign simply means the target date lies before the from-date: 1 January 2026 was 259 days ago, which is exactly 37 weeks — so it fell on the same weekday as 17 September 2026 (both a Thursday). Whenever a day count divides evenly by 7, the two dates share a weekday.

Example 3 — A span that crosses a leap day

From 1 February 2028 to 1 March 2028:

$$\text{JDN}(2028\text{-}03\text{-}01) = 2{,}461{,}832 \qquad \text{JDN}(2028\text{-}02\text{-}01) = 2{,}461{,}803$$$$\text{Days Until} = 2{,}461{,}832 - 2{,}461{,}803 = 29 \text{ days}$$$$\text{Weeks} = \frac{29}{7} = 4.142857\ldots \approx 4.14 \text{ weeks}$$

The answer is 29 days, not 28, because 2028 is a leap year and February 2028 contains a 29th. The identical span in 2027 (1 February to 1 March) is only 28 days. This is exactly why day counting is done through an absolute day number rather than by subtracting month lengths from memory.

Converting Days Into Weeks, Months and Years

Once you have a day count, every other unit is a single multiplication or division. Weeks, hours, minutes and seconds are exact; months and years are averages, because calendar months and calendar years are not all the same length.

Unit Conversion from days Exact or average?
Weeks days ÷ 7 Exact — a week is always 7 days
Months days ÷ 30.44 Average — real months run 28–31 days
Years days ÷ 365.25 Average — includes one leap day every 4 years
Hours days × 24 Exact for 24-hour days
Minutes days × 1,440 Exact for 24-hour days
Seconds days × 86,400 Exact for 24-hour days

The average month figure comes from dividing the average Gregorian year by 12:

$$\frac{365.2425}{12} = 30.4369 \approx 30.44 \text{ days per month}$$

Sample conversions

Days Weeks (÷7) Months (÷30.44) Years (÷365.25) Hours (×24) Minutes (×1,440) Seconds (×86,400)
30 4.29 0.99 0.08 720 43,200 2,592,000
90 12.86 2.96 0.25 2,160 129,600 7,776,000
100 14.29 3.29 0.27 2,400 144,000 8,640,000
365 52.14 11.99 1.00 8,760 525,600 31,536,000
1,000 142.86 32.85 2.74 24,000 1,440,000 86,400,000

Why calendar-month arithmetic differs

Dividing by 30.44 answers "how many average months is this?" — it does not tell you which calendar date you land on. Calendar arithmetic moves the month field directly: 31 January plus one month is 28 February (or 29 February in a leap year), a jump of only 28–29 days, while 31 July plus one month is 31 August, a jump of 31 days. So "3 months from today" and "91.3 days from today" usually resolve to different dates. For contracts, notice periods and medical or legal deadlines, always check whether the rule is written in calendar months or in a fixed number of days — the two can differ by several days.

One more caveat on the exact rows: the hour, minute and second columns assume every day is exactly 24 hours. In regions that observe daylight saving time, one local day each year is 23 hours and another is 25 hours, and occasional leap seconds are added to civil time. These do not change the day count, but they can shift an hours-based total by an hour or two across a long span.

Advertisement

Key Terms Explained

Target date
The date you are counting toward (or back to). In this calculator it is the target field. If it lies in the future you get a countdown; if it lies in the past the result is negative, which simply reads as "days ago".
From date
The reference point the count starts from — the today field. It defaults to the current date, but you can set it to any other date to measure the gap between two arbitrary dates rather than a countdown from now.
Julian Day Number (JDN)
A continuous integer count of days used in astronomy and in date software, with day 0 starting at noon on 1 January 4713 BC in the proleptic Julian calendar (that is, the Julian calendar extended backwards before it was actually introduced). Because every calendar date maps to exactly one integer, the gap between two dates becomes a plain subtraction — no month lengths or leap-year rules needed at the moment of comparison. 1 January 2026, for example, is JDN 2,461,042.
Elapsed days
The number of whole days that have passed between two dates — the raw result of the JDN subtraction. It counts day boundaries crossed, not hours, so it is unaffected by the time of day you run the calculation.
Inclusive vs exclusive counting
Exclusive counting (the default here) counts the gaps between dates: tomorrow is 1 day away, because exactly one midnight separates it from today. Inclusive counting counts both endpoints as days, so "today through tomorrow" is 2 days. The two always differ by exactly 1. Event planners, hotel stays and some legal notice periods use inclusive counting, so check which convention a deadline is written in before relying on a number.
Leap year
In the Gregorian calendar, a year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 and 2028 are leap years, 2000 was, but 1900 and 2100 are not. A leap year has 366 days, with 29 February inserted, which is why identical-looking date spans can differ by a day.
Calendar day vs 24-hour period
A calendar day is a dated box on the calendar, from one local midnight to the next. A 24-hour period is a fixed duration. They usually coincide, but not always: where daylight saving time is observed, the changeover days are 23 or 25 hours long, and crossing time zones can add or remove a calendar day without changing elapsed duration. Day counters like this one work in calendar days, which is what deadlines and anniversaries are normally expressed in.
Week
A fixed block of 7 days. Since the length never varies, days-to-weeks conversion is exact: divide by 7. A whole-number result also means the two dates fall on the same weekday — 259 days, for instance, is exactly 37 weeks.

FAQ

Does it count today? No — it counts the days between the from date and the target date. The target day itself is the last day reached, so a result of 1 means "tomorrow."

What if the date is in the past? The result becomes negative internally, and the display switches to "days ago" so you can see how long it has been.

Does it handle leap years? Yes. The Julian Day Number method accounts for leap years, century rules, and all month lengths automatically.

Last updated:

Most popular in Time and Date

View all Time and Date calculators