When is the right time to take a pregnancy test ?

Had sex without condom 3 days ago. Need to know when is the most accurate time to take a test ?