Function: min(2 *(numbers("yxx") if invert(numbers('rrr') if numbers("per") > numbers("yxx") else numbers('rrr')) > numbers('rrr') else numbers('rrr') if numbers("per") > numbers('rrr') else numbers("yxx")), numbers('rrr') if invert(numbers('rrr') if numbers("per") > numbers("yxx") else numbers('rrr')) > numbers("yxx") else numbers("yxx") if numbers("per") > numbers('rrr') else numbers('rrr'))