How to use the Days Until Calculator
- Enter the date you are counting towards.
- Read the days remaining — past dates report days elapsed instead.
- Use the weeks figure for planning in sprints or pay periods.
- Treat the months figure as approximate; it uses the average month length.
- Check the weekday of the target date when scheduling around it.
How the calculation works
The count compares the target date at UTC midnight with the current moment and rounds up. Rounding up is deliberate: if a deadline is tomorrow and it is currently late evening, you have less than 24 hours but you still have one day left in ordinary speech. Rounding down would report zero and read as if the deadline had passed.
The months figure divides by 30.44, the average length of a Gregorian month across the 400-year leap cycle. It is a reasonable planning approximation and nothing more; for anything where the exact month boundary matters, use the calendar breakdown in the date difference calculator instead.
Simple day counting drives more decisions than it gets credit for: notice periods, visa validity, warranty windows, project runway, prescription supplies and the number of pay cycles before a target. Because the count is inclusive of today only at the moment the page loads, a long-lived tab will drift — refresh before relying on the figure for anything time-critical.
days = ceil((UTC midnight of target − now) / 86,400,000); months ≈ days / 30.44Source: Mean Gregorian month length of 30.4369 days derived from the 400-year cycle; ISO 8601 date basis.
Worked example
A passport expires on 4 May 2027, and a destination requires six months of remaining validity.
- Enter 2027-05-04 as the target.
- Suppose the count returns 400 days remaining.
- Six months of required validity is about 183 days.
- Latest safe travel date: 400 − 183 = 217 days from now.
Travel is safe for roughly the next 217 days; beyond that the six-month validity rule would block entry even though the passport is still valid.
Frequently asked questions
Does it include today?+
The count is from now to midnight on the target date, rounded up, so a target of tomorrow reports one day regardless of the current time.
Why is the months figure approximate?+
Because months are between 28 and 31 days. The average is used for planning; use the date difference calculator for an exact calendar breakdown.
What happens with a past date?+
The label switches to days elapsed and the number is reported as a positive count.
Does it update live?+
It is calculated when the page loads. Refresh to recalculate against the current moment.
Last reviewed August 31, 2026. We review this page whenever the underlying formula, tax year, published rate or standard changes.