We calculate the cost of each recipe by summing up the cost of each individual ingredient used, based on their proportion in the recipe. This means we don't account for the full price of a bottle of olive oil, for instance, but rather the cost of the amount used in the specific dish.