Function: mod(square(numbers("per") if max(numbers('yyx'), numbers("per")) > numbers('yyx') else numbers('yyx') if numbers("xxr") > max(numbers('yyx'), numbers("per")) else numbers("per")), max(numbers('yyx'), numbers("per")) if numbers("per") > numbers("xxr") if numbers("per") > numbers('yyx') else max(numbers('yyx'), numbers("per")) else numbers('yyx'))