in the cart object file, there will be a line that says:
$this->ShippingIsTaxed = true;
but for the shipping to be taxed, the tax calculations need to use the Taxable Total.
Right now in your tax calculation, you are using the Subtotal column.
change out the sub total for the taxable total.