Credit calculator: clear floats properly