Function: 100 *(min(minus(invert(numbers("xxr") if minus(numbers("xxr"), numbers("xyx")) > numbers("xyx") else numbers('rep')), numbers('rep') if minus(numbers("xxr"), numbers("xyx")) > numbers("xxr") else numbers("xyx")), invert(numbers('rep') if minus(numbers("xxr"), numbers("xyx")) > numbers("xyx") else numbers("xxr"))))