Calculating percent of a number