Calculating the percentage of a value.