How to store and calculate number of hours or days?

:cross_mark: onboard delays don’t; I"d use them for small delays (seconds) only
:white_check_mark: timers from the Chronograph app do, while they count up towards a timestamp, set by the “duration” value.

The other things you mention can also be done with Chronograph timers. It has a “day” unit for instance, so no calculations with seconds or minutes needed.
These timers can delay for 999 days, maybe even longer:

See it counting down:

You can count hours, or days etc. with variables as well:

When..
every day
Then..
calculate numeric var “vac” as {{ [var] +1 }}

This increases the variable’s value by 1 each day.
(at some point, reset it to 0 again)

Now you can trigger flows based on that number

When..
variable “vac” has changed
And..
logic card value “vac” is exactly 3 (or 5 or 9 or 400)
Then..
Do things

or:

When…
the last person left
And..
logic card value “vac” is exactly 3 (or 5 or 9 or 400)
Then…
-go vacuum
-logic card set variable “vac” to 0

When you really want to calculate with timestamps, I’d recommend to read the Better logic library app topic.

2 Likes