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