Ectopic pregnancy

For those that have had an ectopic pregnancy, what week did you learn that it was ectopic?