Formulas
6 min read
10 Notion formulas that make your dashboard update itself
Ten copy-and-paste Notion formulas for deadlines, progress bars, time tracking, invoices and monthly revenue, with a plain explanation of how each one works.

Formulas are what turn a Notion page from a list into a dashboard. A database on its own stores information. Add a few formulas and it starts answering questions: what is overdue, how much did I earn this month, how close is this project to its budget.
Below are ten formulas I use again and again in Freyvia templates. They use Notion’s current formula language, so you can paste them into a Formula property and replace the property names in quotes with your own.
1. Days until a deadline
The simplest useful formula. It counts the days between today and a due date, and goes negative once the date has passed.
dateBetween(prop("Due"), today(), "days")
2. A smart due label
Numbers are fine, but words are faster to read. This version turns the count into Today, Tomorrow, In 4d or 2d overdue. The let function stores the number once so you do not repeat yourself.
let(d, dateBetween(prop("Due"), today(), "days"), ifs(d < 0, format(abs(d)) + "d overdue", d == 0, "Today", d == 1, "Tomorrow", "In " + format(d) + "d"))
3. A text progress bar
Notion has a built-in progress bar for number properties, but a text bar can sit inside any card or table cell and be combined with other text. This one assumes a Progress property between 0 and 1.
repeat("■", round(prop("Progress") * 10)) + repeat("□", 10 - round(prop("Progress") * 10)) + " " + format(round(prop("Progress") * 100)) + "%"
4. Hours from a start and end time
For time tracking, log a start and an end time and let a formula work out the duration in hours. Dividing minutes by 60 keeps partial hours.
dateBetween(prop("End"), prop("Start"), "minutes") / 60
5. What a session earned
Once you have hours, multiplying by a rate is one line. If the rate lives on the project, bring it in with a rollup first and use that property instead.
round(prop("Hours") * prop("Rate") * 100) / 100
6. Invoice status that updates itself
Give each invoice a Paid checkbox and a due date. This formula labels it Paid, Overdue or Due in a number of days, so a filtered view becomes your follow-up list.
if(prop("Paid"), "Paid", if(dateBetween(prop("Due date"), today(), "days") < 0, "Overdue", "Due in " + format(dateBetween(prop("Due date"), today(), "days")) + "d"))
7. Is this in the current month?
Comparing year and month as text is a simple way to flag entries from this month. Use it as a filter for monthly views, or inside other formulas.
formatDate(prop("Date"), "YYYY-MM") == formatDate(now(), "YYYY-MM")
8. Revenue this month from related invoices
This is where the current formula language shines. On a client or dashboard page related to your invoices, you can filter the related list, pull out the amounts and add them up, all in one formula.
prop("Invoices").filter(current.prop("Paid") and formatDate(current.prop("Date"), "YYYY-MM") == formatDate(now(), "YYYY-MM")).map(current.prop("Amount")).sum()
9. A budget warning in colour
Colour should only appear when something needs attention. This formula compares hours used with hours budgeted and shows the percentage in green, orange once you pass 80 percent, and red when you go over.
let(p, prop("Hours used") / prop("Budget hours"), ifs(p > 1, style(format(round(p * 100)) + "% used", "red"), p > 0.8, style(format(round(p * 100)) + "% used", "orange"), style(format(round(p * 100)) + "% used", "green")))
10. A greeting that knows the time of day
A small touch, but it makes a dashboard feel alive. Put it at the top of a summary card.
ifs(hour(now()) < 12, "Good morning", hour(now()) < 18, "Good afternoon", "Good evening")
A few habits that keep formulas healthy
Name properties clearly. Formulas are easier to read when properties are called Due date and Paid, not Date 2 and Checkbox.
Use let for anything you repeat. It keeps long formulas readable and easier to fix.
Prefer today() for deadlines. It ignores the time of day, so a task due today shows as Today all day.
Keep colour for exceptions. If every label is coloured, nothing stands out.
Test with edge cases. Try an empty date, a zero budget and a past deadline before you rely on a formula.
Where to go next
These ten formulas cover most of what a working dashboard needs: dates, progress, money and a little personality. Combine them with relations and rollups and your workspace starts doing the arithmetic for you.
Every Freyvia template is built on formulas like these. Company OS, for example, uses them to calculate revenue against your goal, profit, unpaid invoices, project margins and team workload, all updating by themselves every month.