add calc-function

calk sum from 1 to N