Calculation of polarization