Correctly working out the percentages