Calculation of volume and weight in water