Threatened Miscarriage

I’ve had two ultrasounds one at 10 weeks and one at 12 and they couldn’t find a heart beat either time. They said it’s a failed pregnancy and explained that if it doesn’t pass naturally I’ll have to have a D&C. But how long do doctors typically wait until they do a d&c?