calculate the student record