When to take a test?

So me and my boyfriend have been trying to get pregnant for 5 months so far. We did the do in my ovulation window and now I have almost 2 weeks until my next period. I've been having weird stomach cramps where my ovaries are. I was wondering when do you guys think I should take a test?