How to use curve float to interpolate a value?

I have created this to interpolate the camera pitch based on the spring arm length. I would like to use a custom curve to control the interpolation. The upper part works however it is a linear interpolation. The lower nodes using the curve does not work.