An ectopic pregnancy is most likely to occur within the first few weeks of pregnancy and is usually discovered by the 8th week of pregnancy.