Calculating percentage of a given amount