When are you telling your employer that you’re pregnant?

When are you telling your employer that you’re pregnant? After 12 weeks? Later?