Calculating percentage from total calories