Function: mean(max(sum(numbers("per"), numbers('epe')) if numbers("per") > numbers('epe') else invert(sum(numbers("per"), numbers('epe'))), invert(sum(numbers("per"), numbers('epe')))), numbers('epe') if sum(numbers("per"), numbers('epe')) > invert(sum(numbers("per"), numbers('epe'))) else numbers("per"))