Course Date Progress

Progress

if(empty(prop("Course Dates")), "", if(formatDate(now(), "L") == formatDate(start(prop("Course Dates")), "L"), "😬 This course starts today!", if(formatDate(now(), "L") == formatDate(end(prop("Course Dates")), "L"), "🎉 This course ends today!", if(now() < start(prop("Course Dates")), "⏰ " + format(ceil(dateBetween(start(prop("Course Dates")), now(), "hours") / 24)) + " days until course starts", if(now() > end(prop("Course Dates")), "💀 " + format(dateBetween(now(), end(prop("Course Dates")), "days")) + " days since course ended", "⏳ " + format(ceil(dateBetween(end(prop("Course Dates")), now(), "hours") / 24)) + " days left of course • " + format(round(100 - dateBetween(end(prop("Course Dates")), now(), "hours") / 24 / (dateBetween(end(prop("Course Dates")), start(prop("Course Dates")), "hours") / 24) * 100)) + "% done")))))

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1649d2f9-1b45-478a-86b4-341fbe27e06f/benny.png" width="40px" /> By BenLatest • Was this helpful? Please consider buying me a coffee. Cheers!

</aside>