Fix the rate calculation, rounding error results in percentage showing as 0