calculate percentage of a number