Ttc had some spotting

I had some spotting yesterday and the day before off and on and some cramping as well and I cant help think that it was implantation bleeding bc my af was almost 2 weeks ago. I'm trying so hard not to get my hopes up too high but I cant seem to help it. When should I take a pregnancy test?