hydraulic calculations