hydraulic calculation for drainage