How to normalize a variable

This is simple procedure, to normalize a variable and bring it from a scale to another, this is the procedure:



The minimum values of A and maximum values are obvious (i hope),
D and C are the new ranges.  Being D the maximum from the new range and C the minimum from the new range.

This is an example: