Personally, I like to calculate the cost of my foods not by looking at the actual price or being distracted by discounts, but by calculating the price per gram of macronutrient or calories.