> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: Sample Flows ## Article: Sample Flows ## Article Link: https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/extensions/tax/tax-calculation/sample-flows.md ## Article Content: # Sample Flow This article shares a possible use case your app could support, as well as a sample flow that could support the use case. You aren't limited to this exact flow, but it can be a helpful jumping off point as you plan your app's implementation. ## Calculate multi-state tax for the United States A business that operates in multiple U.S. states may need to charge and collect tax at different rates for each state. Your app can calculate the correct tax to apply. To calculate tax for different states: 1. Use [List Tax Calculators](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-calculation/list-tax-calculators.md) to check which tax calculators the site has available to use for tax calculations. 1. Use [Create Tax Region](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-regions/create-tax-region.md) and [Create Tax Group](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-groups/create-tax-group.md) to create any necessary regions or groups. Tax is calculated based on the tax region and tax group assigned to a product. 1. Instruct the site owner to update tax rates using the [Tax Settings in the Wix dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fecom-platform/tax/), or add your own custom logic with the [Tax Calculation Integration Service Plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/tax-calculation-integration-service-plugin/introduction.md). 1. When a cart or checkout is updated, Wix calls [Calculate Tax](https://dev.wix.com/docs/rest/business-solutions/e-commerce/tax/tax-calculation/calculate-tax.md) and your tax settings will apply.