Pregnancy Announcement?

Ya
At how many weeks is the right time to announce your pregnancy
To family? 
Friends?
& social media?