Chemical pregnancies

When does the risk of chemical pregnancy go away? How many weeks of DPO?