create_value_range function

Compute a new scale for a value