Calculating percentage of calories