Anna, I never calculate borax and baking soda. I just make a judgement on how much to add and do small increments until the target is reached. There are so many variables that affect pH and TA that it is kinda hard to have an exact formula for them.