Stupid question but please answer?

After sex how long should you wait before testing for pregnancy? How many days dpo or how many weeks?