Two outer rails, two crossbars and six vertical pieces. All dimensions in inches.
Measure inside the opening at the depth where the insert will sit. Use the smallest width and height. The foam starts at 1/2″ on each edge. Choose the thickness one strip reaches when pressed to the fit you want. The calculator allows that much at both ends of each dimension.
Lay each fitting flat. Short scraps of pipe in the sockets help you see where their centerlines cross. Enter inches as tape marks (for example, 1 1/8 or 5/8) or decimals. The starting values are examples.
Dry-fit a scrap as firmly as you will assemble the frame. Mark the pipe flush with the lip, pull it out and measure from the inserted end to the mark. Repeat for the elbow, tee run and tee branch. When assembling, seat each pipe to its mark.
Measure straight across the outside of each collar, edge to edge. On the tee, the branch points into the window. Measure the straight-through collar. For bare pipe, measure across the cut end through its center.
The width calculation assumes the outer edge is half a fitting width from its pipe centerline. Check the bare frame if a corner has a raised rib or an unusually thick back. Use the same type of elbow at all four corners and the same type of tee at all four crossbar joints. The calculator uses one measurement for both sockets on an elbow and one for both straight-through sockets on a tee.
Dry-fit one side with an elbow at each end and both tees pointing inward. Measure straight from the outside of the top elbow to the outside of the bottom elbow. On an assembled frame, check both sides and enter the taller one.
Add each measured group to build a combined shopping list and cutting plan.