I dont' know if there is a formula to this or not, but why not start with a little bit, then after a few hours, add a little more, and so on until you get the desired pH?
Remember, you want to make any changes very slowly, simply to avoid stress to the fish.