How are taxes calculated?

Xero will handle the tax for each line item according to the mapped Account Code.