DELAY node - variable delay not seeming to work

Use a flow context variable to store the your desired message delay value.

Then use a Change node immediately before the Delay node to set msg.delay to the value of that flow context variable.