Slope formulas and equations