As mentioned in the title...
As mentioned in the title...
I don't know the exact formulas but it probably uses the same one that you can find on the numerous calculators. It's pretty standard, if you hop on tibia-stats you'll likely find that their calculators are all written in JS, so you can simply take a prod at them.