How long after starting antibiotics for pneumonia can I go back to a teaching job?

Whe you feel ok. In general one can return to work when the major symptoms, cough, fever, and shortness of breath have resolved.
Depends on you. Simple or walking pneumonia may not hinder you from doing your job, your body should be the guide as to when to return to work.