fixing off-by-one in components/Metrics.js and how average is computed in components/GeneratedEngagement