Pregnancy tests

Anabelle
I'm not quite sure where to post this but how long after you have sex does it take for a pregnancy test to give you accurate results?