Chemical pregnancy

How long after a chemical do you have to wait to have sex? I lost my baby at 5w3d