How to Add Days Left in Notion (Countdown Formula)
In this article
To add a "days left" countdown in Notion, create a formula property that subtracts today's date from a target date. The simplest working formula is dateBetween(prop("Due Date"), now(), "days"), which returns the number of full days between now and the due date. You can wrap it in format() or concat() to display a label like "5 days left", and add an if() to show "Done" or "Overdue" when the number drops below zero. The steps below cover the exact property setup, the formula variations, and the common errors that make the countdown show blank or negative.
What You'll Need
- A Notion page or database with at least one date property (for example, "Due Date" or "Deadline").
- Edit access to the database so you can add a formula property.
- A basic understanding of how Notion property names are referenced in formulas (they must match exactly, including spaces and capitalization).
Step-by-Step
- Open your database in a full page view. Click the database title or open it as a page so you can see the property headers. Inline databases work too, but the full page gives you more room to edit formulas.
- Add a new property. Click the
+button at the far right of the property header row. In the menu that appears, choose Formula. Give it a name such as "Days Left" and press Enter. - Open the formula editor. Click the new formula property's header, then click Edit formula (or click directly into the formula field). A panel opens with a text box and a list of available functions and properties.
- Reference your date property. Type
prop("Due Date")— replace Due Date with the exact name of your date property. You can also click the property name in the formula panel to insert it automatically. If the name has an apostrophe or special character, keep the quotes exactly as Notion inserts them. - Write the core countdown formula. Replace or extend the formula to:
dateBetween(prop("Due Date"), now(), "days")
This returns a number: positive if the due date is in the future, zero if it is today, and negative if it has passed. Press Done to save. - Check the output. Each row should now show a number in the Days Left column. If a row is blank, that row's date property is empty — the formula returns nothing when the date is missing.
- Make it readable with a label. To show "5 days left" instead of just "5", wrap the formula:
concat(format(dateBetween(prop("Due Date"), now(), "days")), " days left")
You can also useformat()alone if you only need the number formatted as text. - Handle overdue and completed items. Use an
if()to change the message when the countdown goes negative:if(dateBetween(prop("Due Date"), now(), "days") < 0, "Overdue", concat(format(dateBetween(prop("Due Date"), now(), "days")), " days left"))
Adjust the threshold and text to fit your workflow. For a checkbox-based "Done" state, add another condition that checks the checkbox property first. - Sort or filter by the countdown. Click the property header and choose Sort ascending to bring the nearest deadlines to the top. You can also filter to show only rows where the formula is greater than or equal to zero, hiding completed or overdue items.
- Test with a few dates. Set one date to today, one to tomorrow, and one to yesterday. Confirm the formula shows 0, 1, and a negative number (or your custom labels). This catches property-name mismatches before you rely on the view.
Common Mistakes
- Mismatched property names.
prop("Due Date")fails silently if the actual property is called "Due date" or "Deadline". Copy the name from the formula panel rather than typing it. - Using
today()instead ofnow(). Both work for day counts, butnow()includes the current time, which can make a deadline later today show as 0 or negative depending on the hour. For pure day counts,today()is often more predictable. - Forgetting that empty dates return empty. A formula cannot count down from a date that does not exist. Fill the date property or wrap the formula in an
if(empty(prop("Due Date")), "No date", ...)check. - Expecting the number to update live. Notion recalculates formulas when the page loads or when the database is refreshed. A countdown may not tick over at midnight until you reopen the page.
- Putting the arguments in the wrong order.
dateBetween(start, end, "days")returns end minus start. Swapping the date andnow()flips the sign, so future dates show as negative.
Tips
- Name the formula property something clear like "Days Left" so it reads naturally in board and calendar views.
- Use the
"days"unit for whole-day counts;"hours"or"minutes"are available if you need finer granularity, but they make the column noisy. - Combine the countdown with a status select property (Not Started, In Progress, Done) and filter the view to hide Done items — the formula keeps working without extra logic.
- If you want a progress bar, pair the days-left number with a second formula that divides elapsed days by total days. Keep the two formulas separate for easier debugging.
- Duplicate the database as a template once the formula works, so new projects start with the countdown already configured.
Troubleshooting
The formula shows a blank cell. Check that the date property is filled for that row and that the property name in prop() matches exactly. Notion is case-sensitive and space-sensitive here.
The number is negative when the date is in the future. You likely swapped the arguments. The correct order is dateBetween(prop("Due Date"), now(), "days") — target date first, current date second.
The countdown does not change after midnight. Reload the page or reopen the database. Formula values are computed on load, not continuously in the background.
You see an error about an unknown function. Check spelling and parentheses. dateBetween takes three arguments: start date, end date, and a unit string in quotes. Missing quotes around "days" is a common cause.
The label text looks wrong. If you used concat(), make sure every text piece is a string or wrapped in format(). Numbers cannot be concatenated directly without conversion in some formula contexts.
If that did not work, simplify: delete the formula and rebuild it one piece at a time — first just prop("Due Date"), then add dateBetween, then add the label. This isolates which part is failing.
Frequently Asked Questions
Can I show "days left" without a formula?
Not as a live countdown. Notion's date property can display a date, but the remaining-days number requires a formula property. You can, however, use a date reminder or a calendar view for a visual sense of time.
Why does my countdown show 0 on the due date?
dateBetween counts full days between the two dates. If the due date is today, the difference is 0. If you want "Due today" to appear, add an if() that checks for zero and returns custom text.
Does the formula work on mobile?
Yes. Formula properties are part of the database and display on the Notion mobile apps. Editing the formula itself is easier on desktop, but the computed values appear on mobile views.
Can I count down to a date and time, not just a day?
Yes. Use "hours" or "minutes" as the unit in dateBetween. The date property must include a time for the result to be meaningful.
What happens if I change the date property name later?
The formula breaks because prop() references the old name. Notion may show an error or a blank value. Update the formula to use the new property name.
Can I use the countdown in a filter?
Yes. Formula properties can be filtered like any other property. Filter for "Days Left" is greater than 0 to show only upcoming items, or less than 0 to review overdue ones.