Fixing a math bug in my aggregated metrics