the grand total is calculated in the cart.
instead of hand coding things to remove the VAT from the cart display, you should create a discount that will do that inside the cart that way the cart will handle the total correctly and you wont need to do any hand coding of the cart display.