Error/Warning 10997 in result calculation

Continuation of the topic: