How many DPO?

How many DPO does it take to tell that you're pregnant? When should you test?