Calculation of sailing yacht resistance