Calculate the slope (rate of change) of a line given the coordinates of two points.
Formula
m = (y2 − y1) / (x2 − x1)