Slope Calculation and Endpoint Positioning