Simple PHP template to calculate GPA