CAC calculation