Microbrew.it's second house model, a reduced form of deLange's proton balance. Malts mixed in distilled water settle where their proton exchanges cancel, so each malt pulls on the blend in proportion to how much acid it can trade, its mass times its buffering: pH_grist = Σ m_i × B_i × DI-pH_i ÷ Σ m_i × B_i pH_mash = pH_grist + (Alk × f(pH_mash) − EH) × V ÷ (B × m) − A ÷ (B × m) f(pH) = (g(pH_source) − g(pH)) ÷ (g(pH_source) − g(4.3)), g(pH) = 1 ÷ (1 + 10^(6.38 − pH)) m_i, B_i, DI-pH_i: each malt's mass, buffering and distilled-water pH Alk: total alkalinity, mEq/L; EH: effective hardness (Ca ÷ 1.4 + Mg ÷ 1.7), mEq/L V: mash water, L; m: grist, kg; B: grist buffering; A: acid, mEq 6.38: pKa₁ of carbonic acid; 4.3: the titration endpoint alkalinity is measured to f is the share of the reported alkalinity a mash actually neutralises: it never reaches pH 4.3, so about 9 % of the bicarbonate is still bicarbonate at pH 5.4 and never consumes malt acid. Since the mash pH appears on both sides, the equation is solved by bisection. For pH 7.2 water landing at 5.4, f is about 0.90, which agrees with deLange's full carbonate treatment to a point.