Pregnancy test

Ema

I’m not so sure about when do I take the pregnancy test, really confused. If I had sex in June 30th ( 9 days due my period ) do I count the days to test after the ovulation of June or the ovulation of this month (July) ??

I mean, do I have to wait till I miss the next period or the one that I have already missed? Or would the test be accurate by now?