Calculation of grams of solute or concentration of solution