This is the simplest way to calculate your chemistry needs for pool balancing. There are other apps that work but are a lot more complicated and will cost you a lot more time which is definitely the least desirable scenario when standing in someone's backyard.
Pool Chem Dose Calculator at Google Play market analyse