add function to calculate subtotal of NCopies