Blockly wait: variable amount of ms possible?

You would probably benefit from using the Gatekeeper block from openHAB Rules Tools [4.1.0.0;4.9.9.9].

You can calculate the amount of time put into a variable and use that to time the gatekeeper.

The gatekeeper will manage the timers for you.