Calculating averages for weeks. imported lodash