How long should we wait to announce?

How long should you wait to announce pregnancy? Family, close friends and then publicly? I want to tell our parents first... then move on to immediate family. and I was wondering how long you were wait for each? Opinions please!!! We’re first time parents in a long term relationship...