Fixed a major bug.

(90 - 1000) / 1000 has to be done using floats, not unsigned longs