How soon?

How soon should a person try to get pregnant again following a miscarriage or chemical pregnancy? I was only 4 weeks so it was just a 1 week latr period kind of thing.