Implement method calculateResult