It wasn't interpolation, it was extrapolation. Also reverted the calculation of extrapolation