Test after miscarriage

Ashley

How long did yalls test take to get negative I had a miscarriage on July 23 bleed for 4 days then had sex as soon as the bleeding stopped and am wondering how long it takes for the hcg to leave my body