HOW TO CALCULATE VERTICAL CURVE