> ## Documentation Index
> Fetch the complete documentation index at: https://zenskar.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Single-concept walkthrough: How the recurring quantity strategy works

> This example-based document shows how your billing team creates a period-of-time product for active users, with a pricing preset that takes the active users of each month from a billable metric, with the recurring quantity strategy.

## Story: pricing active users by the month

Your company sells project management software. It charges each customer \$20 a month for each user who is active in that month. The number of active users changes from month to month.

Your billing team already counts the active users of each customer with the [billable metric](https://zenskar.com/docs/20260301/zenskar-modules/usage/glossary.md#billable-metric) `Active users`. It now creates the [product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product) `Active user`, and the [pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-preset) that charges for it. On the way, it puts these concepts into practice:

* [Metered usage](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#metered-usage-quantity-from-a-billable-metric)
* The [recurring quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#quantity-strategies-consumption-or-allocation)
* [Partial-period handling](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#partial-period-handling-how-part-of-a-billing-period-is-charged)

The story uses these values:

| Value | In the story |
| - | - |
| [Product](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product) | `Active user`, with the [unit labels](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#unit-label) `user` and `users` |
| [Product type](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product-type) | **Period of time** |
| [Product subtype](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#product-subtype) | **Quantity** |
| [Pricing model](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-model) | **Per Unit** |
| Currency | **USD** |
| Price per active user | \$20 |
| [Pricing period](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#pricing-period) | **Monthly** |
| [Metered usage](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#metered-usage) | The billable metric `Active users` |
| [Quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#quantity-strategy) | **Recurring** |
| [Partial-period handling](https://zenskar.com/docs/20260301/zenskar-modules/products/glossary.md#partial-period-handling) | **Prorate** |

With this pricing preset, 12 active users in a month cost 12 × \$20 = \$240.

The company and the numbers are fictional.

### Prerequisites

* A role with the **Can Read Product**, **Can Create Product**, **Can Read Product Pricing**, **Can Create Product Pricing**, and **Can Read Billable Metric** permissions.
* The billable metric `Active users`, which counts the different users of each customer who are active in each period. See [Create a billable metric](https://zenskar.com/docs/20260301/zenskar-modules/usage/how-to-guides/billable-metrics.md#create-a-billable-metric).

### Create the product for active users

1. Go to **Products**.

2. Click **CREATE PRODUCT**. The **Add product** screen opens.

3. In **Name**, enter `Active user`.

   A [product](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#products-what-you-sell) describes what your company sells. Here, your company sells one active user for one month.

4. Optional: In **Tax category**, select a value.

   A [tax category](https://zenskar.com/docs/20260301/zenskar-modules/settings/tax-configuration/concepts/tax-configuration.md#tax-categories-how-products-are-taxed) classifies the product by how it is taxed. Zenskar calculates tax only for a product with a tax category. This story does not cover tax, so the billing team leaves the field empty. See [Tax configuration](https://zenskar.com/docs/20260301/zenskar-modules/settings/tax-configuration/concepts/tax-configuration.md).

5. Click **Description**, and enter `One user who is active in a month.`

6. In **Product type**, select **Period of time**. The dashboard selects **Quantity** in **Subtype**.

   The [product type](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#product-types-when-consumption-happens) follows when the customer consumes the product. The customer pays for an active user for the whole month, whether the user works once or every day. That makes `Active user` a [period-of-time product](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#period-of-time-product-type). With the [quantity product subtype](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#quantity-product-subtype), `Active user` is measured as a number of users.

7. Click **SKU and unit**.

8. In **Unit**, enter `user`.

9. In **Unit, plural**, enter `users`.

   The [unit labels](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#products-what-you-sell) name the unit in which the product is measured: one user, several users.

10. If **Custom attributes** shows fields, enter a value in each required field that has no default value.

    A [custom attribute](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/concepts.md#custom-attributes-details-that-you-add-to-records) adds a detail of your own to the product. A required custom attribute without a default value needs a value before you can go on. A required custom attribute with a default value can stay empty, because saving the product writes the default value. See [Required values: what a record must have](https://zenskar.com/docs/20260301/zenskar-modules/settings/custom-attributes/concepts.md#required-values-what-a-record-must-have).

11. Click **Set prices**. The **Set prices** screen opens.

### Price active users per month

1. In **Pricing Model**, keep **Per Unit**.

   Every active user costs the same \$20. The [per-unit pricing model](https://zenskar.com/docs/20260301/pricing-models/concepts/per-unit.md) multiplies the number of active users by that price.

2. In **Currency**, keep **USD**.

3. In **PRICE PER UNIT**, enter `20`.

4. In **Pricing Period**, keep **Monthly**.

   The \$20 covers one month. That month is the [pricing period](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#pricing-periods-the-time-that-an-amount-covers) of the pricing preset.

### Take the active users from the billable metric

1. Select **Usage is metered**.

   The number of active users is [metered usage](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#metered-usage-quantity-from-a-billable-metric) that the billable metric `Active users` measures. Zenskar runs the billable metric once for each [billing period](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#billing-period). Its result becomes the [quantity](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#quantity) of that billing period. The active users change from month to month, so the billing team takes them from the billable metric.

2. In **Meter**, select `Active users`.

3. In **Quantity Strategy**, select **Recurring**. **Partial Period Handling** appears.

   The [recurring quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#quantity-strategies-consumption-or-allocation) treats a quantity as an allocation that stays in place until a new quantity replaces it. The active users of a month are such an allocation: the customer holds them for the whole month. Each month, the count of the billable metric replaces the count of the previous month:

   | Month | Active users | Amount |
   | - | - | - |
   | May | 12 | 12 × \$20 = \$240 |
   | June | 6 | 6 × \$20 = \$120 |

   June is charged for 6 active users, even though May had 12. When a billable metric gives no value for a billing period, the recurring quantity strategy keeps the quantity of the previous billing period. The billable metric `Active users` counts users. A count gives 0 for a month without active users. Such a month therefore costs \$0.

   The [on-demand quantity strategy](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#quantity-strategies-consumption-or-allocation) would treat each count as a separate consumption at the moment it occurs. That fits SMS messages, where each message counts once. A pricing preset with the on-demand quantity strategy has no partial-period handling. For part of a billing period, Zenskar would prorate nothing. The billing team wants to charge for the active users that a customer holds, so it selects the recurring quantity strategy.

4. In **Partial Period Handling**, keep **Prorate**.

   [Partial-period handling](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#partial-period-handling-how-part-of-a-billing-period-is-charged) decides how Zenskar charges for part of a billing period. Part of a billing period occurs, for example, when a [line item](https://zenskar.com/docs/20260301/zenskar-modules/contracts/glossary.md#line-item) starts partway through a billing period. For a period-of-time product with the recurring quantity strategy, Zenskar prorates the amount.

   Suppose that a line item starts on April 16, in a billing period from April 1 to April 30. It covers 15 of the 30 days, and 8 users are active. The two options charge these amounts:

   | Partial-period handling | Amount for April |
   | - | - |
   | **Prorate** | 8 × \$20 × 15 ÷ 30 = \$80 |
   | **Charge Full** | 8 × \$20 = \$160 |

   The billing team charges a customer only for the part of the month that the line item covers, so it keeps Prorate.

### Save the pricing preset

> [!CAUTION]
>
> You cannot change or delete a pricing preset after you save it. Check every field before you click **Add product**.

1. Click **Add product**.

The dashboard confirms that the product and its pricing preset are added.

### Review the pricing preset

The billing team checks that the saved pricing preset matches the values of the story.

1. In the **Products** list, click **Active user**. The product screen opens.

2. Under **Prices**, find the card of the pricing preset. The top of the card shows `$20.00`, **USD**, **Per Unit**, and **Default**.

   The pricing preset is the first pricing preset of `Active user` in US dollars. That makes it the [default pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/concepts/products.md#pricing-presets-how-you-charge) in US dollars. Zenskar uses the default pricing preset of a currency when no other pricing preset is chosen.

3. Check the body of the card. It shows **Every Month** under **Cadence**, **Recurring** under **Quantity Strategy**, **Metered (Active users)** under **Source**, and **Prorate** under **Partial Period**.

### Summary: what your billing team did

Your billing team created the product `Active user`, a period-of-time product with the quantity subtype. It gave the product a pricing preset in US dollars, at \$20 per active user per month. The pricing preset takes the active users of each customer from the billable metric `Active users`. It treats them with the recurring quantity strategy, so the count of each month replaces the count of the previous month. For part of a billing period, it prorates the amount.

See [Add a pricing preset](https://zenskar.com/docs/20260301/zenskar-modules/products/how-to-guides/pricing-presets.md#add-a-pricing-preset).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.