Added logic to calculate food items