calculating average on change event in instructorView