How is the far clipping plane calculated?

In the perspective function, if you dont give it a certain farClippingPlane value, it computes it based on your HEIGHT of your display. I assume it always computes a reasonable number(nothing to big). But I just wonder. How is it actually calculating it?