calculation processing