Recipes Costs Calculation

so how do you calculate the cost of the food ? Is there a way to do that ? whats your approach for that ? Any suggestions or advise