The slope is angles away from the horizontal of a straight line.
m = (Y2 - Y1) / (X2 - X1)
Where, m = Slope of the line,
X1, X2 = X coordinates, Y1, Y2 = Y coordinates.