RED: Error recognizing method "calculate"