How to calculate the number of carbohydrates