fix calculation of final grade for a subject. Corrected order of
operations issue.