calculateResult