Applying intercepts and slope