This example computes how far from the wall, measured perpendicular to the wall, hits the workplane. The figure below shows this length for January 1 in Chicago for windows with different orientations. The spike at sunset is a numerical artifact that has no physical significance.