copilothow to calculate aggregate - Search