Calculation of sheet metal bending length