Unprotected sex!

Last night I had sex and he came inside, when should I take a pregnancy test! I'm freaking out. 
​BTW.. He was suppose to pull out but he FAILED!