How to calculate the sum of one filed in the aggs of another field?