How to calculate a Pipe Laser Slope Percentage

How to do the math computation to determine the Slope Percentage setting that is entered into a pipe laser