The formula to calculate the Carbohydrates Percentage (P) is:
\[ P = \left( \frac{C}{T} \right) \times 100 \]
Where:
Let's say the carbohydrates (C) are 30 grams and the total food weight (T) is 150 grams. Using the formula:
\[ P = \left( \frac{30}{150} \right) \times 100 \]
We get:
\[ P = 20\% \]
So, the carbohydrates percentage is 20%.