diff -r 26ffc2fb0eaf -r 8b87ad5bd3c3 www/js/rec_view.js --- a/www/js/rec_view.js Fri Aug 05 20:11:11 2022 +0200 +++ b/www/js/rec_view.js Sat Aug 06 18:44:22 2022 +0200 @@ -1413,7 +1413,7 @@ } //console.log('n: ' + n + ' pd: ' + pd + ' protonDeficit: ' + protonDeficit + ' frac: ' + frac + ' pHa: ' + pHa); bicarbonate = wg_bicarbonate - protonDeficit * frac / liters; - total_alkalinity = RA * 50 / 61; + total_alkalinity = bicarbonate * 50 / 61; ph = pHa; $('#wb_ph').val(Round(ph, 2)); $('#est_mash_ph').val(Round(ph, 2));