scaleUnit function

A function to standardize the unit