The amount of time you should dedicate to studying for the PE exam depends your schedule.
If you are working a full-time job while studying, you may need 3-4 months to study for the exam.
If you have some free time, you may be able to get away with studying really hard for a month or so.