Validating the method calculateRemainingSteps() doing error report