---
title: Use Advanced Formulas Between Meters
url: https://docs.maxio.com/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters
applies_to: Advanced Billing
updated: 2026-10-20
---

# Use Advanced Formulas Between Meters

> [BETA]
>
> This feature is currently in beta and may change over time. During the beta period, functionality, availability, and performance may vary.
>
> To join the Beta program, [request Beta access](https://maxio.typeform.com/to/JHltD85a#mxd_jira=MXD-1153).

Attach a Formula Meter to a Product, so a mathematical expression combining multiple Meters drives the charge instead of a single Meter's raw value.

> **Important:** Maxio Metering, at least one Meter, and the `meter_formula` feature must be enabled on your site before you begin. See <a href="https://docs.maxio.com/billing/maxio-metering/advanced-formulas/understand-advanced-formulas-between-meters" target="_blank" rel="noopener noreferrer">Understand Advanced Formulas Between Meters</a>.

## Create a Formula Meter

1. In Advanced Billing, navigate to the **Product Catalog** and open the Product Family containing your Product, or create a new event-based Product.
2. On the Product, locate the **Metering** section and click **Switch to Advanced Formula**.

   ![Product metering section before switching to an advanced formula](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013428103437_image.png)

   ![Product metering section after switching to an advanced formula](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013461501069_image.png)
3. Click **Select Meter** to add the first member Meter. In the **Attach a Meter** dialog, click a Meter to select it. The row highlights in blue with a checkmark on the right to confirm your selection. Then click **Attach Meter**. Click **Select More Meters** to add additional Meters. All selected Meters must belong to the same Stream and Segment Group.

   ![Attach a Meter dialog listing three Meters, with one row highlighted in blue and a checkmark on the right](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013461502221_image.png)

   ![Attach a Meter dialog filtered to one Event Stream, with the Count Meter highlighted in blue and a checkmark on the right](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013428108557_image.png)

   ![Assembled list of member meters in a formula](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013461504013_image.png)
4. In the formula editor, enter your expression using `[meter-handle]` bracket notation, for example `[elite-api-total] * (3+[count-api_calls])`. Press Tab or Enter to autocomplete a Meter name or function as you type.
5. Click **Validate formula** to check your formula. A success message confirms the syntax is valid and all Meter references exist.

   ![Validation message confirming the formula succeeded](https://docs.maxio.com/content-images/billing/maxio-metering/advanced-formulas/use-advanced-formulas-between-meters/47013461504141_image.png)
6. Save the Product. At the next billing cycle, Maxio evaluates the formula using live Meter values, and the result appears as the billable quantity on the Invoice.

## Supported formula syntax

| Element | Syntax | Example |
| :--- | :--- | :--- |
| Meter reference | `[meter-handle]` | `[api-calls]`, `[storage-gb]` |
| Addition | `+` | `[reads] + [writes]` |
| Subtraction | `-` | `[revenue] - [cost]` |
| Multiplication | `*` | `[calls] * 0.01` |
| Division | `/` | `[total] / [count]` |
| Less than | `<` | `[usage] < 1000` |
| Greater than | `>` | `[usage] > 1000` |
| Grouping | `( )` | `([reads] + [writes]) * 0.01` |
| Absolute value | `ABS(expr)` | `ABS([inbound] - [outbound])` |
| Average | `AVG(a, b)` | `AVG([reads], [writes])` |
| Minimum | `MIN(a, b)` | `MIN([usage], 1000)` |
| Maximum | `MAX(a, b)` | `MAX([usage] - [included], 0)` |
| Round | `ROUND(expr, places)` | `ROUND([revenue] / [count], 2)` |
