You could set aside the spreadsheet and employ a simple water treatment:
1.) Measure alkalinity with a test kit (salifert, etc..)
2.) Measure calcium with a test kit (salifert, etc..) (or multiply the alkalinity by 0.4)
3.) (1,2 And/or) Set the pH (and thus alkalinity level) of all liquor to a...