Calculate a interpolation parameter that generates a value to be interpolated within the range from From to To.