You can create an Editor Utility Widget that can do the calculations for you.
Here’s what I came up with. It’s crude, but gets the job done. You can modify it as you like: