Function: cos(numbers('rep')) if numbers("per") if numbers('rep') > 2 *(cos(numbers('rep'))) else cos(numbers('rep')) > 2 *(cos(numbers('rep'))) else 2 *(cos(numbers('rep'))) if numbers('rep') > cos(numbers('rep')) else cos(numbers('rep')) if numbers('rep') > 2 *(cos(numbers('rep'))) else numbers("per")