Sum of column in subpanel

Hi everybody, I want to add a row below the subpanel which contains the total, calculated from the sum of the (value * quantity) for each subpanel row, is there any way to modify the subpanel to achieve this?