> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.getkoin.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How Koin calculates store credit

By default, Koin calculates store credit based on the **subtotal after discounts**. Shipping fees, VAT, and discounts are **not included** in this calculation.

However, if a customer redeems store credits in that order, the redeemed amount is **still counted** in the subtotal.

You can customize this calculation rule anytime.**&#32;**To adjust the calculation rule:

1. Go to **Koin > Programs** in your Shopify Admin.
2. Click **Settings** in the top-right corner.
3. Under **Issued store credit is calculated based on**, select one of the following options:
Total order amount (excluding discounts, tax, and shipping)
Total order amount (excluding applied store credits, discounts, tax, and shipping)
4. Click **Save** to apply changes.

![](https://storage.crisp.chat/users/helpdesk/website/-/c/0/2/5/c02521bae3235800/image_14i77o5.png)
