Calculation of mass or weight