How soon?

Can anyone tell me how soon I can take a pregnancy test and getting an accurate result after having intercourse (hoping for a positive). Thanks!!!!