Well, if you don't want to rely on your own math skills you can, of course, write a script to help you with that.
Doing this in a universal way to include most use-cases is just not so trivial, though.
From what I can tell, this does not seem like a feature a lot of people request right now...