The tenure of the visa depends upon the essence of the visit. Technically, you may even overstay (which usually means you wouldn't have the ability to use the ESTA ever again) but so long as you don't overstay longer than 180 days, you'd be in a position to leave the U.S. for the K-1 interview and come back utilizing the K-1 without penalty.