https://wikimass.com/php/average-of-n-numbers