Help I been spotting for 2 what should I do

Shyy

I had unprotected intercourse with my husband on the days with the heart

May 29 I started spotting

When should I take a pregnancy test?