Calculating percentage of calories from sugar in a candy bar.