When do babies grow out of spitting up?

At approximately how many weeks months?