formula to calculate aggregate marks - Search