When is the food absorbed?

After eating, how long before the carbs, fat, calories, and nutrients are absorbed by the body.

If one vomits a few hours after eating and there is a large bulk of food thrown up, what parts of the originally eaten food has been absorbed?

Well, anything that is in your stomach has not been absorbed. The vast majority
of nutrients are absorbed in the small intestine. Food can take up to 4 hours to pass through the stomach. also, water, electrolytes, monosaccharides, and fat soluble molecules including alcohol are all absorbed in the stomach to some degree. Then the rest of digestion and the majority of absorption is done in the small intestion.

notes from the UNM undergrad A&P webpage

http://webanatomy.net/anatomy/digestion_notes.htm

IIRC the stomach basically starts breaking the food down into constituent parts in preparation for digestion, which happens mostly in the small intestine, with the large intestine handling mostly water absorbtion. Thus anything vomited from the stomach would not yet have had any nutrients absorbed from it.