Help?

Had unprotected sex July 14. Yes he ejaculate in me, which I don’t mind. I got off bc about 3 weeks ago. When can I take a test?