The duration of treatment for pediatric pneumonia varies depending on the cause and severity. Mild cases typically require 1-2 weeks of treatment, while severe cases may take 2-4 weeks or longer. For example, pneumonia caused by Streptococcal infection usually requires a 2-week treatment period, Mycoplasma infection may take over 2 weeks, and Staphylococcus aureus infection may necessitate at least 6 weeks of treatment due to its potential for recurrence and complications such as empyema or pneumothorax.