When should i take a pregnancy test??

Okay, I had sex the day after my period. I started ovulation Wednesday. Since then I had really bad cramps and just been sleepy all the time. I don't know if its a sign or it could be something else. When should I take a pregnancy test? After I miss my period or before?