convert_units function

Convert all units, regardless of starting and ending units