Concentration determination using pH values and volumes