Calculation of components in solution