Im stuck on how I would go about writing this calculation out. Basically. I have an array of objects and I need to know the average level achieved (incentive_level). I believe in this case it is 0
[
{incentive_level: 0, users: 183},
{incentive_level: 1, users: 72},
{incentive_level: 2, users: 57},
{incentive_level: 3, users: 9}
]