Calculation of electric force