A medical student eats granola with milk for breakfast, containing 100 grams of protein, 250 grams of carbohydrates, 20 grams of fat, and 10 grams of nondigestible fiber. The student skips lunch, and in the evening, consumes spaghetti containing 180 grams of carbohydrate, 10 grams of protein, and 10 grams of fat. How many kilocalories has the student consumed?