Purge expired values, calculate average.