Function: invert(sum(min(numbers('ryy'), numbers("xxr")), numbers('ryy'))) if min(numbers('ryy'), numbers("xxr")) > sum(min(numbers('ryy'), numbers("xxr")), numbers('ryy')) else sum(min(numbers('ryy'), numbers("xxr")), numbers('ryy')) if numbers('ryy') > min(numbers('ryy'), numbers("xxr")) else invert(sum(min(numbers('ryy'), numbers("xxr")), numbers('ryy')))