There are tools available to help with the calculations.
LSI - https://www.pentair.com/en/knowledge-base/pool-spa-equipment/pentair-pool-calculators/saturation-index-calculator.html
Pool Math will also help with the amount of chemicals to add to adjust to desired levels. https://www.troublefreepool.com/calc.html