Getting average in extended trend

Getting average in extended trend

What would be best way to get a variable average of custom time in extended trends.
Client expects to be able to see an average between double cursor in extended trend between chosen times in service engine