Beginner

Calendar Countdown Calculator — Days Until Any Event

Find out exactly how many days, weeks, hours and minutes stand between today (or any start date) and an upcoming event — or look back at how long ago something occurred.

Enter a valid number

Leave as today or change the start date

Enter a valid number

The event or deadline you are counting down to
Days until target date
171

Calendar days remaining until the target date.

Years, months, days
0y 5m 18d
Total weeks
24 weeks + 3 days
Total hours
4,105
Total minutes
246,300
2026-07-132026-12-31171 daysYear progress of the start date (position in the calendar year)
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Subtract the Unix timestamp of the from date from the target date and divide by 86 400 000 to get calendar days. The calculator also breaks the span into years, months, weeks, hours and minutes. Future dates show a countdown; past dates show elapsed time.

Formula
Days = (Target Date − From Date) in milliseconds ÷ 86 400 000
How this is calculated

The calculator converts both dates to Unix timestamps (milliseconds since 1 January 1970) and subtracts them. Dividing the absolute difference by 86 400 000 gives calendar days; further division gives weeks, hours, and minutes. A finer breakdown into years, months and remaining days accounts for variable month lengths: it walks the month and day differences back from the target date, borrowing from the next larger unit whenever a component goes negative.

For future dates the result shows a countdown; for past dates it shows the elapsed duration. All calculations use the local midnight of each date (no time-zone conversion), so the result is purely a civil-calendar difference and does not depend on daylight-saving time.

Note that "months" and "years" in the breakdown are approximate civil units that depend on when the period falls — February has 28 or 29 days, for example. The total-days figure is always exact.

Frequently asked questions

The calculator measures whole calendar days between the two dates — it does not count either endpoint. So the countdown from 1 January to 2 January is 1 day. If you want to include both ends, add 1 to the result.

This calculator counts all calendar days, including weekends and public holidays. For a business-day count you would need to subtract weekends (roughly 2 days per week) and any statutory holidays — those vary by country and region so they are not included here.

Yes. If the target date is earlier than the from date the calculator shows how many days, weeks, hours and minutes have elapsed since that date — useful for anniversaries, ages or historical events.

APA

TG we-Calculate Editorial Team. (2026). Calendar Countdown Calculator — Days Until Any Event [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/calendar-countdown-calculator

Chicago

TG we-Calculate Editorial Team. "Calendar Countdown Calculator — Days Until Any Event." TG we-Calculate. 2026. https://we-calculate.com/calculator/calendar-countdown-calculator.

IEEE

TG we-Calculate Editorial Team, "Calendar Countdown Calculator — Days Until Any Event," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/calendar-countdown-calculator

BibTeX

@misc{wecalculate_calendar_countdown_calculator, title = {Calendar Countdown Calculator — Days Until Any Event}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/calendar-countdown-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?