I want to be a doctor when I grow up.
Should be “Quero ser médico quando eu crescer”- use of personal infinitive.