There are about 4 calories per gram of carbohydrates. As such, if 20 grams of carbohydrate are provided, simply multiply 4 calories per gram with the total amount of grams of carbohydrates.
<em>20 grams of carbohydrates</em> x <em>4 calories per gram of carbohydrates</em> = 80 calories total.