Is it possible to calculate subtotal and total