The way you’ve done this in Variable Math is how I would do it as well. If there is another way, I don’t know what it is.
FYI, for Hubitat LED intensity control from the dashboard the rule with rule machine is much easier: