Fixed the xpath to calculate the total before and after adding the coupons and extras