fixing the tax calculations