Calculation and fabrication of 45 degree cut of pipe