Created by: pydsigner
Actually do some math instead of pulling magic numbers out of the code's orifices