corrected math error on conversion script