Use same formula to convert from device to logical units as everywhere