Hi Yuri,
it's seemt have typo issue at this :
PHP Code:
if (count($args) > 2) {
PHP Code:
if (count($arguments) > 2) {
i have create a new custom formula, it's appear on sandbox, but not on AdvancedPack report (complex expression sample).
i have certainly a missing files somewhere or it's a choose for not have issue with users.
Regards