I think I had implantation bleeding and want to take a test

Sarah
Yesterday I had cramping and brownish/pinkish discharge yesterday and am thinking it could have been implantation bleeding. When can I take a test to see if i am pregnant?