HOw many days after u protected sex can you wait until taking a pregnancy test ?

According to <a href="https://play.google.com/store/apps/details?id=com.glow.android.eve">eve</a> My fertile days were oct 17-23. Which I had unprotected sex 18 and the 23rd Of oct. ofc today’s the 28 so ive been having mild cramps all day today and yesterday the 27 and backaches and dizziness and I dint know if that’s just me or I could be pregnant ? How many days do I have to wait until taking a pregnancy test ??