Calculation of two digit