Modify weight loss calculation to floating point