How did you tell your bf/husband you were pregnant?

How did you tell your SO you were pregnant, when you weren’t “actively” trying... not trying, not preventing... the whatever happens happens mindset??

I’m not pregnant but I’ve been thinking about if I DID end up pregnant, how would I tell him and WHEN should I tell him (# of weeks)

Any advice??