Computing the percentage of a number