Calculate forces