get subtotal version 2