Runtime calculation for running status

This post may give you inspiration, Adding delay in a tag event in UDT

It is for a UDT but you can adapt. You can add to the expression to also look at another tag, in this case amps.