creating the grade view and calculating the hours