A rolling offset combines two directions
Horizontal (roll) and vertical (set) offsets form a right triangle. A 3 in roll with a 4 in set gives a 5 in true offset. At 45° elbow deflection, travel is 5 ÷ sin 45°, or about 7.071068 in, and the advance along the pipe is 5 ÷ tan 45° = 5 in.
Travel is measured between ideal elbow centerline intersections. Subtract the two actual fitting takeouts and any end gaps to find the connecting straight piece. The calculator leaves the cut result empty until both takeouts are supplied.
Signs and the roll angle
Enter right and up as positive, left and down as negative. The roll angle is found with atan2 and measured counterclockwise from the positive horizontal direction, so a left-and-up offset reads between 90° and 180°.