The tube has an inner diameter $d$ and is immersed in water at an angle $\theta$ from the horizontal. Determine the average length $L$ to which water will rise along the tube due to capillary action. The surface tension of the water is $\sigma$ and its density is $\rho$.