Get 40%-off on all premium templates.
Discount code auto-applied at checkout.
When it comes to task and project management, I'm never able to understand how the due date relates to today's date. Maybe it's because I don't always know which day it is, or because sometimes the date is too far in the future. So, I like to come up with formulas to help me out. Here's one I built for one of my upcoming templates (see the "Lateness" property to the right).
This formula takes the "Status" and "Deadline" properties as input and provides a visual representation of the lateness of tasks as output. In case you're interested, here's the formula I used:
if(empty(prop("Deadline")) == true, "", if(prop("Status") == "Completed", "🟢", if(prop("Days between (F)") == 0, "🟠 Last day", if(prop("Days between (F)") < 0, "🟡 " + format(prop("Days between (F)") * -1) + " day(s) left", "🔴 " + format(prop("Days between (F)")) + " day(s) late"))))
Josh Redd came up with another visual representation, which I also liked a lot. He uses checkboxes instead of status, but the principle is the same.
He uses the following formula:
if(prop("Done"), "✔️", if(empty(prop("Due")), "📆", if(divide(dateBetween(prop("Due"), now(), "hours"), 24) < -3, "🚨", if(divide(dateBetween(prop("Due"), now(), "hours"), 24) < -1, "🔴", if(divide(dateBetween(prop("Due"), now(), "hours"), 24) < 0, "🟡", "🟢")))))
What's particularly clever is that he used a great hack to make his column slimmer. To replicate it, follow these steps:
This will ensure that your column stays as wide as the checkboxes ones🪄