Computing the percentages