Back when I was working, I told my supervisor at 12 weeks mostly because I think a lot of people on my team suspected it and I didn't want my boss to be the last one to find out. It was sort of out of courtesy.