I have tries to do this but:

calc(-3px + 40%) === window.getComputedStyle(handler).left
calc(40% - 3px) === handler.style.left

Then I guess that both of them are acceptable so keeping my first idea, right?

Thanks