Calculating the percentage