Volume and length calculation