How long should we treat community-acquired pneumonia?

How long should we treat community-acquired pneumonia?