How to determine the slope