You can see that in this formula we are using "time_spent + remaining_estimate" twice – once when we check that it's not zero (so we don't divide by zero) and again when we divide by it.
Instead of repeating the expression every time, we can rewrite this formula using theWITHconstruct:
WITH total_time = time_spent + remaining_estimate :
IF total_time > 0 :
time_spent / total_time
CODE
You can define multiple local variables in succession. You can also use previously defined local variables when defining additional local variables. For example: