calculate cpoints