Make sure to measure when you are flaccid and let the penis hang naturally. Measure along the top of the penis from the base (where it meets the body) to tip.
(Cage length) = (Length of your flaccid penis) - (Parallel spacing) - (Thickness of the base ring, approx. 10mm)