i need help

okay so today is the last day of my fertility and me and my boyfriend had sex during my fertility week and he came inside of me whenever we had sex and my stomach would get small cramps like maybe 30 mins to an hour after we had sex and i don't know why i get the stomach cramps but how long do i need to wait to take the pregnancy test to see if i am or not..