Cna pregnant

I am a CNA and it's a hard job how long should I wait to tell my boss I'm pregnant? What about my teachers at school?