A slope calculator using formula (y1-y2)/(x1-x2)