Days Until Calculator

Enter a future date (and optional time) to see how many days, hours, minutes and seconds remain.

The formula

Difference in milliseconds = target date and time − now
Total seconds = floor(difference ÷ 1,000)
Days = floor(seconds ÷ 86,400)
Hours = floor((seconds mod 86,400) ÷ 3,600) Minutes = floor((seconds mod 3,600) ÷ 60) Seconds = seconds mod 60
mod
The remainder after division — what is left once whole days or hours have been taken out.
now
Read fresh on every tick, so the countdown stays accurate rather than drifting.

Worked example

Counting from 27 July 2026 at 14:00 to 1 January 2027 at 00:00.

157 days, 10:00:00 remaining.

It updates live

Once you calculate, the page recalculates every second, so the seconds field visibly ticks and you can leave the tab open as a countdown. Because each tick reads the current time rather than subtracting one from the previous value, it stays correct even if the tab is backgrounded, the machine sleeps or the clock is corrected.

The field takes a time as well as a date

That is the difference between a rough answer and a useful one for anything with a deadline attached — a submission cut-off, a flight, a launch. Leaving the time at midnight is the same as counting to the very start of that day, which is usually a day earlier than people mean when they say a date.

Past dates are refused rather than shown as negative

If the target has already passed, the calculator asks for a future date instead of counting up. For time since an event, you need an elapsed-time calculation instead, which is a different subtraction.

Time zones and daylight saving

The countdown runs on your device clock, so it measures elapsed real time from where you are. A target expressed in someone else’s time zone has to be converted to your local time before you enter it. Daylight-saving transitions are handled correctly for elapsed time — a day containing a clock change is still 23 or 25 hours of real time, and the countdown reflects that.

Common questions

How many days until a specific date?

Enter the target date and time and the page shows the gap as whole days plus hours, minutes and seconds, then keeps it updated every second. Including the time matters — counting to midnight at the start of a day gives a different answer from counting to the end of it.

Does the countdown keep running if I leave the tab open?

Yes. It recalculates from the current time on every tick rather than decrementing a stored number, so it stays accurate through sleep, backgrounding and clock adjustments.

Why does it refuse a date in the past?

Because the result would be negative, which is not a countdown. To measure time since something happened, subtract in the other direction using an elapsed-time or date-difference tool.

Are weekends and holidays excluded?

No. This counts calendar time, every day included. Working-day counts need a different calculation, since they depend on your week pattern and on a holiday list that varies by country and region.

Get tools like this in your inbox
One useful tool per week. No spam. Unsubscribe anytime.
Tools Pro — $9 a month

One licence key, pasted into any CYZOR tool. Today it does three things: drops the CYZOR line from PDFs you send for signature, takes CYZOR branding off your forms and adds CSV export, and switches on the AI rewrite in the resume builder.

See Tools Pro

Terms · Privacy · Refund · Contact