Function: product(2 *(minus(numbers("xxr"), numbers('rep'))), minus(numbers("xxr"), numbers('rep'))) if 2 *(minus(numbers("xxr"), numbers('rep'))) if product(2 *(minus(numbers("xxr"), numbers('rep'))), minus(numbers("xxr"), numbers('rep'))) > minus(numbers("xxr"), numbers('rep')) else numbers("xxr") > 2 *(minus(numbers("xxr"), numbers('rep'))) else minus(numbers("xxr"), numbers('rep'))