Hi Tyler,

Thanks for the help.
Your approach is definitely much more elegant than mine. Will try it out.

I actually found a video from 5 years ago from Coaching No Code Apps that uses Modulo.
They used the following formula
DD = Parent group’s date - clock’s current date/time :format as seconds / 60 / 60 / 24 modulo 365 - 0.5 :rounded to 0
I could not figure out why it was subtracting 0.5 and did not like the 365 days a year aspect as it did not allow for leap years.
Was the floor function not available back then?

While I appreciate your much more elegant solution, it is still driving me crazy that the workflow as it is currently configured gets the wacky negative seconds.
I cannot see any error in my calcs and am left wondering if I don’t understand something about the date functions that could bite me on the bum later on.
If you do see an error, please let me know.

Cheers,

KH

1 Like