How to convert measurements to common units