When did i become pregnant?

My last period was may 22,2017 i had intercourse may31&june1

I took a pregnancy test yesterday

June 17,2017 within a minute both lines showed up.