Taking a pregnancy test

When after unprotected sex is a good time to take a test