calculation of CA