The formula is calculated based on the amount of cations, anions and charge balance. The calculation scheme is after Droop 1987 Mineralogical Magazine.