When should I take a test ?

I was supposed to get my period a few days ago but it hasn’t gone down because I took a plan b on the 17 so it messed it up and my period has been already messed up because two months ago I also took a plan b. I’m aware that yes plan b isn’t good and that I should be on birth control, I know that I should do that as well for my own safety. However doesn’t anyone know How long should I wait until I take a pregnancy test?