Gets a linear interpolated value by using the actual value and interpolating between the min and max value.