how to calculate nums aggregate 2022