If I had a scale, I personally would have calculated the molar ratio

, but since I don't, I just assumed that Ca+2 and Mg+2, having the same charge, would react in the same way with the reagent in my GH test kit. So I raised the degree of hardness first with Mg, then 4 times that amount with Ca. I may be off on this, but I didn't think my plants would punish me too much if I were.
I'll check out the calculator next time. Epsom salt is hydrated so you would have to include the weight of 7 moles of water per mole of MgSO4.