Calculating the percentage of a given amount