Calculation of charge magnitude