Calculating item row sum