Calculating the remaining weight of an anhydrous salt