NewMaxio Metering is now available — usage-based billing for Advanced Billing.Learn more
/

Use Advanced Formulas Between Meters

··

Last updated on Aug 28, 2026

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.

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 Understand Advanced Formulas Between Meters.

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

    Product metering section after switching to an advanced formula

  3. Click Select Meter to add the first member Meter. In the Attach a Meter dialog, select a Meter and 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

    Meters being added to a formula

    Assembled list of member meters in a formula

  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

  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

ElementSyntaxExample
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 valueABS(expr)ABS([inbound] - [outbound])
AverageAVG(a, b)AVG([reads], [writes])
MinimumMIN(a, b)MIN([usage], 1000)
MaximumMAX(a, b)MAX([usage] - [included], 0)
RoundROUND(expr, places)ROUND([revenue] / [count], 2)

For formula syntax used within a display-only Metered Field instead of a billing Product, see Use Advanced Formulas with Metered Fields.

Still need help?
Reach out and our support team will take it from here.

Contact support