it is not the weight emitted I am looking for. The fraction, xi, should be a function of yi and partial pressure. If I can find xi, I should be able to find the mg/l of the ammonia/ammonium in solution. My problem is, how much is ammonia and how much is ammonium, if I don't know the pH? I've tried solving it using [NH3][H+]/[NH4+] = Ka, but my quadratic equation gives me an imaginary number.