Calculation of total force