A gram of fat contains 9 calories. An 1,800-calorie diet allows no more than 20% calories from fat. How many grams of fat are allowed in that diet?