Do the correct unit conversion