The math it took to calculate the number of calories in your favorite snack involved a lot more guesstimation than you may think.