How long to wait before taking a pregnancy test

Okay so I had a lapse in judgement and had unprotected sex. My bf and I were on a trip, and he forgot condoms.

I wasn’t ovulating, he pulled out, but for piece of mind I know I’m gonna want to take a test so I was wondering how long I should wait to get the most accurate results.