Hi,
In my calendar, I have a copied a formula to track the day's progress. However, it is only based on the hour without taking past, current, or future days into account. My database includes formulas that return a checkbox for if the day is today, if it has passed, or if it is upcoming.
The progress formula is:
if(10 * hour(now()) / 24 < 1, "▒░░░░░░░░░ " + format(floor(100 * hour(now()) / 24)) + "%", slice("▒▒▒▒▒▒▒▒▒▒", 0, 10 * hour(now()) / 24) + slice("░░░░░░░░░░", 10 * hour(now()) / 24) + " " + format(floor(100 * hour(now()) / 24)) + "%")
I would like to add the following conditions: if the day has passed, then the progress will read 100%; if the day is upcoming, the progress will read 0%.
I would really appreciate it if someone who has a better grasp on conditional statement could help me with the formula.
Thanks,
Jack