Confused

How long after you stopped bleeding from a miscarriage did you test negative on a pregnancy test?