how to calculate term mark