Calculation of resultant force