The final grade is the maximum of two numbers:
1) The grade of final examination, which is written and it takes place during 90 minutes.
2) A weighted average of the grade of "continuous evaluation" (weight 1/3) and "final examination" (weight 2/3).
The grade of "continuous evaluation" is the share of lectures attended by the students during the semester X20.
Under online teaching, I will assume that the latter grade is 20 for every each student.