Length and capacity conversions