When does miscarriage risk drop?

.

Is it as soon as you hit 12 weeks?

Or

When you're at the end of the 12 weeks like 12 weeks and 6 days. ????