HELP!!!!!!!!!!!

I had unprotected sex 6 days ago and now I’m spotting and throwing up like crazy, when should I take a test?