I think the crystal was designed to use that capacitance. There's no equation. Crystals of the same frequency might need different load capacitances. It's just in the datasheet of the crystal.
It's generally in the range of 20-30pf changing the capacitance with a small trimmer can tune the frequency juuust slightly if need be. I'm not sure how the capacitance is calculated for a crystal but whomever you buy your crystals from should specify the cap value with the crystal like Dk says.