fun with numbat for someone with a Sunday at 2 AM reset:
let n = now()
let w = weekday(n)
let days_since_sunday =
if w == "Sunday" then 0
else if w == "Monday" then 1
else if w == "Tuesday" then 2
else if w == "Wednesday" then 3
else if w == "Thursday" then 4
else if w == "Friday" then 5
else 6
let candidate = calendar_sub(time("02:00"), days_since_sunday * days)
let last_sunday =
if n - candidate < 0 seconds
then calendar_sub(candidate, 7 days)
else candidate
let next_sunday = calendar_add(last_sunday, 7 days)
(n - last_sunday) / (next_sunday - last_sunday) -> percent
so I’m 64% through my week
my fable percentage is over that
my everything-else percentage is under that