Calculating average time report on a page from a formula field

Calculating average time report on a page from a formula field

Hi Everyone,

We would like to see the average time our engineers spend on site working. We have a form they fill in for each site they visit. On this form they have a time arrived and time departed fields. I then run formula field that works out the time they had been on site see below for the formula. We then have a page that details various things. But i cannot work out how to get the average from the below formula field into a chart or panel in a page. 

Thanks for any help :) 



 (((input.Time_Departed - input.Time_Arrived)) / (1000 * 3600)).toLong() + " Hours " + (((((input.Time_Departed - input.Time_Arrived)) / (1000 * 3600)).toDecimal() - (((input.Time_Departed - input.Time_Arrived)) / (1000 * 3600)).toLong()) * 60).toLong() + " Mins"   (this is not mine)