Time since event with a variable

Hub c-8 v 2.4.2.134

Im using rule machine.
Would like to dynamically adjust a run time on a device.

Im currently using time since event to turn off watering with a pump.

Currently i must define a static time but would like to use a calculation to determine how long the watering occurs depending on the moisture level.

Any advice?

I was thinking of creating a variable that I could set the time but it is not an option with the ‘time since event’ action to use a variable.

Can you be more specific, particularly with how you want to start the countdown? If you just want to turn a switch off some variable amount of time after it turns on, you don't need "time since." Just create a rule that triggers with it turning on, then create two actions, a "Wait for event: elapses time" using your variable as the time and another that turns the switch off.

Here's how that first action would look when being created: