Formula:Protein (g) = Calories × Protein Ratio ÷ 100 ÷ 4Fat (g) = Calories × Fat Ratio ÷ 100 ÷ 9Carbs (g) = Calories × Carb Ratio ÷ 100 ÷ 4