Pregnancy after loss

Olivia • 3 girls 3 angel babies.

My baby didn't have a heartbeat at 8 weeks and 4 days. Waited 2 weeks to see if I could naturally pass it but it didn't work. So did the medicine a week ago and am still experiencing bleeding and discomfort. My question is after miscarriage how long did it take to get pregnant again?