Time & date

Countdown to date

Days, hours, minutes until any future date — and the progress so far.

01Inputs
Leave empty to start the countdown from today.
02Results
Days remaining
Target:
Hours · minutes · seconds
Progress
Weeks remaining
Business days (≈)
Already past?
Progress from reference to target
Reference Target

Times use your browser's local timezone. The business-days estimate is days × 5/7 — it does not deduct public holidays.

03How it works

Why this calculator exists

Most people pick a target date — a launch, a wedding, a contract renewal, the end of the school term — and then promptly lose track of how close it really is. A glance at a wall calendar tells you the date, not the distance. This calculator turns that distance into the four numbers you actually plan around: days, weeks, business days, and the live hours-minutes-seconds tick. It also shows the share of the journey you have already covered, which is the single most useful figure when you are pacing a project or a savings effort. The countdown is anchored to your browser's clock, runs entirely in your browser (no data is sent anywhere), and re-evaluates every time you change an input, so you can sketch dozens of scenarios in seconds without leaving the page.

The formula

The countdown is built from three timestamps and one ratio. First, the calculator parses the target date plus the optional target time into a single instant T. If you leave the time field at midnight, the deadline is interpreted as the very start of that day; if you set 23:59 you get the last minute of it. Second, it reads the current instant N from your device clock. Third, it reads the reference date R — the moment you want the progress bar to start from. If you leave the reference field empty, the calculator uses today, which means progress starts at zero and grows as the deadline approaches.

The four primary outputs follow directly:

  • Total milliseconds remaining: Δ = T − N. If Δ is negative, the deadline is in the past and the Already past? flag flips to Yes. The displayed days, hours, minutes and seconds are computed from the absolute value |Δ|, so a "−3 days, 02:15:00" past-due reads cleanly as "3 d, 02:15:00, past = Yes".
  • Days, hours, minutes, seconds: integer division of |Δ| by 86 400 000, then 3 600 000, then 60 000, then 1 000.
  • Progress percentage: 100 × (N − R) / (T − R), clamped to the 0–100 range. If the reference is in the future relative to now (i.e. you have not yet started the timer), the percentage stays at 0 %. If T ≤ R (a misconfigured scenario where the reference is after the target), the calculator falls back to 0 % when the deadline is upcoming and 100 % when it is already past.
  • Weeks and business days: weeks = ⌊days / 7⌋ and business_days ≈ round(days × 5 / 7). The business-days figure is a calendar estimate — it does not deduct public holidays, vacation, or weekends that already fell inside the period.

How to use it

Pick the deadline first: type or use the date picker for the Target date, then nudge the Target time if the moment matters (event start, market close, server cut-over). The default 00:00 is fine for casual countdowns. If you want the progress bar to track the elapsed share of a defined window — say a 90-day promotion or a 6-week sprint — set the Reference date to the start of that window. Otherwise leave it blank and the bar will start at 0 % today and reach 100 % the moment the deadline lands. Every keystroke recomputes the result; nothing is stored or transmitted. Use the bookmark button in the toolbar to save a frequently-used countdown to your favourites and the share menu to copy a link that pre-fills your inputs for someone else.

Worked example

You are shipping a product on 31 December at 23:59 and you want to know, on a random Tuesday in mid-September, how the work is pacing. Set Target date = 2026-12-31, Target time = 23:59, Reference date = 2026-01-01. If today is 16 September 2026 at 10:00 local time:

  • T − N is roughly 106 days, 13 hours, 59 minutes — the calculator displays "106 d" in the headline KPI and "13:59:00" in the live HMS field.
  • T − R is about 364 days; N − R is about 258 days; the Progress therefore reads 100 × 258 / 364 ≈ 70.9 %. The progress bar fills to roughly the 71 % mark, with the live "Now" marker pinned to the same position and labelled "70.9 %".
  • Weeks remaining is ⌊106 / 7⌋ = 15 w. Business days is round(106 × 5 / 7) ≈ 76 bd. Already past? is No. Open the calculator on the same scenario at midnight on 1 January 2027 and the headline flips to "0 d", HMS reads "00:00:00", progress is 100 %, and the past flag is Yes (with a tiny negative Δ).

Pitfalls and edge cases

  • Browser timezone, not UTC. The calculation uses your device's local clock. If you set a target of "2027-03-15 09:00" while travelling, you are committing to 09:00 wherever the laptop currently lives. Two collaborators in different timezones will see slightly different remaining figures for the same target — by design, because most personal countdowns are local.
  • Daylight-saving jumps. When clocks spring forward or fall back, Δ can shift by an hour without you touching any input. The day count is unaffected (it rounds to whole days) but the HMS readout and the progress percentage will jiggle by up to 60 minutes on the transition day.
  • Leap seconds are ignored. They are inserted by the IERS roughly once every 18 months and are not surfaced by the JavaScript Date API; the resulting drift over a multi-year countdown is at most a handful of seconds — negligible for human planning.
  • Reference in the future. If R > N, the timer has not started yet from your perspective — progress is pinned at 0 % so the bar does not lie about elapsed work. The HMS and days-left fields still tick down toward T.
  • Business days are an estimate. The 5/7 ratio is the correct long-run average for a Monday-Friday work week, but any specific 30-day window can land on anything between 20 and 22 weekdays depending on alignment, and public holidays can shave off another two to four. Use it for back-of-the-envelope, not for SLAs.
  • Calendar weeks vs ISO weeks. The "weeks remaining" KPI counts elapsed 7-day chunks from now. It is not aligned to ISO calendar weeks (W01 starts on the Monday of the week containing the year's first Thursday), so do not match it against a weekly tracker that uses ISO numbering.

The same machinery powers a family of related tools that you can build by adjusting a single line of input:

  • Anniversary mode — swap target with reference and the calculator becomes a "time elapsed since" counter (years married, days sober, hours since the last incident on a safety dashboard).
  • Multiple deadlines — point the same calculator at several rows in a planning sheet (project A, project B, project C) and read the sorted list of days-left as a portfolio dashboard.
  • Recurring countdowns — pin the target to "next Friday 17:00" or "first day of next month" and the same arithmetic gives you a rolling weekly or monthly ticker, useful for sprint cadence or rent reminders.
  • Pomodoro and short timers — substitute minutes for days on the inputs and the HMS readout becomes a 25-minute focus timer with break tracking.
  • Lunar and Islamic calendars — convert the target into a Hijri or lunar date before passing it in; the JavaScript Date object is purely Gregorian, so non-Gregorian systems need a pre-processing step.
  • Sprint burndown — feed the calculator a sprint start (reference) and sprint end (target) and the progress percentage gives you the day-by-day ideal-burn line that a JIRA dashboard plots in grey behind the actual story-point burn-down.

Related calculators