Calculating mass of water in a solution