Changed the int variables to doubles so that we wouldn't lose value.
Reported in https://app.asana.com/0/9404392569325/9404392569327