Wallet balance does not draw any tax liability. Tax calculation happens only for the amount paid by the customer apart from the wallet. Also, the tax is calculated for the invoices that are Approved, and not for the invoices in Pending or Draft status.