Pregnancy after miscarriage

How long did you wait to tell your SO that you were pregnant after a loss?