Calculate the percentage of a number.