Calculates your GPA based on marks and credits in each subject.