Skip to main content

Units in Aire

Every term in Aire has a unit. That unit isn’t just a label—it’s an active part of the model. It travels through formulas, surfaces in views, and appears in exports. When you combine terms in a formula, Aire checks whether the units are compatible and flags the formula if they aren’t. This is the unit system: structured, automatic, and always on.

Setting and Changing a Unit

You assign a unit when you create a term. Units are also assigned automatically during model import—Aire reads the unit metadata from your source file and maps it to each term. You can update a term’s unit at any time. When you do, Aire propagates the change through every formula and view that references that term, so nothing goes stale silently. Recognized units (listed in the reference below) unlock automatic conversion and consistency checking. For anything not in the library, units are free-form text—you can express them however your domain requires (kgCO₂e/MWh, MMBTU/hr) without being constrained.

Automatic Unit Consistency Checking

When you write a formula that combines two terms, Aire resolves the resulting unit based on the operation:
  • Multiplying MW by hoursMWh
  • Dividing USD by MWhUSD/MWh
  • Adding USD to USDUSD
Where it gets important: adding MW to MWh isn’t valid—you can’t add power to energy. Aire catches this. The platform validates that the units in a formula resolve to something coherent, and flags the formula if they don’t. This validation runs automatically—you don’t configure it or turn it on. It’s part of how every formula is evaluated.

Error Detection and Resolution

When a formula’s units don’t resolve cleanly, Aire surfaces a unit error directly on the term. The error indicates which terms are in conflict and what units are involved. To resolve it, you have two options:
  • Fix the formula: If the combination genuinely doesn’t make sense, the formula likely has a logic error that needs to be corrected.
  • Add an explicit conversion: If the combination is intentional (e.g., normalizing MWh to MW over an assumed period), you can introduce a conversion term that makes the unit relationship explicit.
Aire doesn’t silently coerce units. If two values can’t be combined without a conversion, you have to define one—which is the right behavior for a model meant to be audited.

Units as Guardrails

Units act as guardrails at two levels: for your model and for AI. For your model: Unit checking has caught errors in every customer model ingested to Aire to date. These aren’t obscure edge cases—they’re the kind of mistake that’s easy to make in a complex model: a formula that divides where it should multiply, a cost expressed in $/kW when the downstream formula expects $/MW, a percentage applied as a decimal in one place and as a whole number in another. Each of these produces a result that looks plausible but is wrong. Units surface these issues at the formula level, before they propagate into outputs. For AI: When Aire’s AI suggests or generates formulas, those formulas are subject to the same unit validation as anything you write yourself. A formula the AI produces that combines incompatible units will surface an error just like any other. This means you can evaluate AI-generated formulas with confidence—if the units check out, the formula is at least structurally sound. The result is a QA layer built into the modeling environment itself—one you don’t have to design, document, or maintain separately.

Compared to Excel

In Excel, managing units is manual. Cells don’t carry unit metadata, formulas don’t validate unit consistency, and catching a unit error typically requires color-coding columns, adding header rows, or relying on the reviewer to notice a mismatch. In Aire, units are a first-class property of every term. The platform enforces consistency across every formula automatically. You still have to write correct formulas—but you get immediate feedback when units don’t line up, rather than finding out after a presentation or an audit.

How Units Flow Through Formulas

Aire tracks units through arithmetic automatically.
OperationExampleResult
Same unit100 kWh + 50 kWh150 kWh
Multiply100 MW × 8 h800 MWh
Divide500 km ÷ 2 h250 km/h
Cancel$50,000/year × 10 years$500,000
Calendar chain16 hours/day × 22 days/month352 hours/month

Calendar Rates

One of the most important distinctions in the unit system is the difference between a calendar rate and a physical rate. Physical rates like USD/hr represent a continuous flow—the kind you’d measure with a flow meter or integrate over time. Use physical rates when the quantity is genuinely continuous: heat flux, electrical power, fuel consumption. Calendar rates like USD/month or MWh/year represent scheduled accounting periods. These are common in financial modeling: a budget is 50,000/month;aplantproduces1,200MWh/year.Calendarratesdonotcollapsetopersecondequivalents50,000/month; a plant produces 1,200 MWh/year. Calendar rates do not collapse to per-second equivalents—`50,000/monthstays$50,000/month`. The rule of thumb: if you would write it on a budget spreadsheet, it’s a calendar rate. If you would measure it with an instrument, it’s a physical rate.

Calendar Ratios

Calendar ratio units like hours/day and days/month let you chain calendar-period calculations so periods cancel correctly:
16 hours/day  ×  22 days/month  =  352 hours/month
The day tokens cancel and you get hours/month. Make sure your calendar chains fully resolve—multiplying days/month by a bare year (instead of months/year) leaves unresolved periods and will raise a unit error.

Unit Conversion with CONVERT()

The CONVERT() function converts a value from one unit to another, as long as both units measure the same quantity.
CONVERT(value, "from_unit", "to_unit")
FormulaResult
CONVERT(1, "MWh", "kWh")1000 kWh
CONVERT(100, "km", "mi")62.137 mi
CONVERT(25, "C", "F")77 F
CONVERT(1200, "USD/year", "USD/month")100 USD/month
Attempting to convert between incompatible units (e.g., kWh to kg) will produce an error.

Unit Reference

Units are case-sensitive. Use the exact strings in the “Type in…” column.

Energy

UnitType in…Notes
Watt-hourWh
Kilowatt-hourkWhMost common for electricity
Megawatt-hourMWh
Gigawatt-hourGWh
Terawatt-hourTWh
British Thermal UnitBTU or Btu
Million BTUMMBtu or MMBTUCommon in natural gas
Calendar energy rates:
UnitType in…
kWh per yearkWh/year or kWh/yr
kWh per monthkWh/month or kWh/mo
MWh per yearMWh/year or MWh/yr
MWh per dayMWh/day
MMBtu per yearMMBtu/year or MMBtu/yr

Power

UnitType in…Notes
WattW
KilowattkW
MegawattMW
GigawattGW
Megawatt DCMW-DCSolar nameplate capacity

Currency

UnitType in…
US DollarUSD or $
EuroEUR or
Million USDUSD_M or $M
Calendar rates:
UnitType in…
USD per yearUSD/year or $/year
USD per monthUSD/month or $/month
USD per weekUSD/week or $/week
USD per dayUSD/day or $/day
Cost intensity:
UnitType in…
USD per kWhUSD/kWh or $/kWh
USD per kWUSD/kW or $/kW
USD per MWhUSD/MWh or $/MWh
USD per kW-yearUSD/kWyr or $/kWyr
USD per MMBtuUSD/MMBtu or $/MMBtu
USD per tonUSD/ton or $/ton
USD per kgUSD/kg or $/kg
USD per m²USD/m² or $/m2
USD per acreUSD/acre or $/acre
USD per hectareUSD/ha or $/ha

Mass

UnitType in…Notes
Kilogramkg
Metric tont or MT1,000 kg
Pound (mass)lbm
CO₂ (metric ton)tCO2Carbon accounting
Hydrogen (kg)kgH2

Time

UnitType in…
Seconds
Minutemin
Hourh
Dayday
Weekweek
Monthmonth
Quarterquarter
Yearyear

Temperature

UnitType in…
CelsiusC
FahrenheitF
KelvinK
Temperature units cannot be multiplied or divided—use them only for temperature readings, not temperature differences.

Calendar Ratios

UnitType in…
Hours per dayhours/day
Days per monthdays/month
Days per yeardays/year
Hours per monthhours/month
Hours per yearhours/year
Months per yearmonths/year
Weeks per monthweeks/month
Quarters per yearquarters/year

Other

UnitType in…Notes
Meterm
Kilometerkm
Square meter
Hectareha10,000 m²
Acreac
Cubic meter
LiterL
PascalPaPressure
VoltV
AmpereA
Molemol
Parts per millionppm
Percent%