Use case
Return the averaged number of days since the sub-tasks of the current issue were created.
Expression
Create and configure a Smart field using this expression in General parsing mode:
%{floor(avg(toNumberList(jiraExpression("issue.subtasks.map(i=>(Number(new Date())-Number(i.created))/1000/60/60/24)"))))}