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