To calculate the wetted perimeter of a full pipe use the formula P =2πr, where r is the radius. If the pipe isn't full use the formula P = θr, where θ is the angle at the center of the circle covered by the arc containing water, and r is the radius