finish the answerCalculate logic