calcSlope