add caculate logic