pregnancy

How soon can you test to find out if you're pregnant? Had unprotected sex on a cycle day that was in my fertile window. How long after should I be able to know?