Use this formula to show a date-based task status while keeping your manual Status property for workflow stages such as In progress or Done.
if(
prop("Status") == "Done",
"Done",
if(
empty(prop("Due Date")),
"No due date",
if(
prop("Due Date") < today(),
"Overdue",
if(dateBetween(prop("Due Date"), today(), "days") <= 3, "Due soon", "On track")
)
)
)What this formula does
The formula checks completion first, then compares the due date with the current date.
| Condition | Result |
|---|---|
Status is Done | Done |
| No due date | No due date |
| Due date has passed | Overdue |
| Due within 3 days | Due soon |
| More than 3 days away | On track |
Database setup
Create these properties in your Notion database:
| Property | Type | Example |
|---|---|---|
Task | Title | Send weekly report |
Due Date | Date | July 27, 2026 |
Status | Status or Select | Not started, In progress, Done |
Date Status | Formula | The formula above |
Keep Status as a manual property and name the formula property Date Status so the two types of status stay separate.
Change the due-soon window
Replace 3 with the number of days that fits your workflow:
dateBetween(prop("Due Date"), now(), "days") <= 7This marks tasks due within a week as Due soon.
Add colors
Use styled text if you want the result to stand out in a table:
if(
prop("Status") == "Done",
style("Done", "green"),
if(
empty(prop("Due Date")),
style("No due date", "gray"),
if(prop("Due Date") < today(), style("Overdue", "red", "b"), style("On track", "green"))
)
)Common problems
If completed tasks show as overdue, make sure the completed status is exactly Done or replace it with your own value.
If a task becomes overdue too early, check whether your due date includes a time. This formula uses today() for date-only task planning.
If the formula returns No due date, check that the date property is filled and that the formula uses the correct property name.