Unit conversion, specific gravity and ratio calculation