add caculate function
add caculation