To figure a rolling offset using 45-degree bent fittings:
Determine the horizontal and vertical offsets of your pipeline.
Take the square root of the sum of the horizontal and vertical offsets' squares. This will be the true offset of your rolling offset.
Finally, multiply the true offset by 1.4142 or divide the true offset by sin(45°).
Read more