Slope calculation and rate of change comparison