Help!!

My cycle is a little messed up (I took a plan b in July) but me and partner realized we are ready for a child... so I haven’t had my period I have no idea where I am in my cycle, how many days after we had sex should in take a pregnancy test?