core caculate