First, calculate the percentage you received on the test by dividing your mark by the total marks. For example, if you scored 18 out of 20, then 18/20 = 90 percent. Secondly, multiply your percentage score on the test by the percentage it is worth of the final grade.