Days Until Calculator
Days Until Calculator
The days until calculator counts the exact number of calendar days and optionally business days between today and any future (or past) date.
Conversion Formula
Total days = (target date midnight) - (today midnight), divided by 86,400,000 milliseconds per day, rounded up. Business days are counted by iterating each day and checking if it is Monday through Friday (getDay() returns 1-5).
Step-by-Step Examples
Target: 30 calendar days from today = 30 total days, approximately 22 business days
A typical 4-week period has about 22 weekdays
Target: January 1, 2027 = Varies by calculation date
New Year planning - use this to count down to the new year and know exactly how many workdays remain in the year
Frequently Asked Questions
What counts as a business day?
Business days are Monday through Friday. This calculator does not exclude public holidays, as holidays vary by country and region.
What if the target date is in the past?
The total days result will be negative, showing how many days ago the date was. Business days will also reflect a negative count.
What date format should I use?
Use the date picker provided by the calculator. The underlying format is YYYY-MM-DD, but your browser will display it in your local format.