OAE Calculators – an Admin Guide

In this Admin Guide, we cover OAE Calculators – how to create, categorize, and configure them, plus using math operators, units, and prefixes. See also the User Guide for OAE Calculators. To navigate to the OAE Calculators page, click on the Settings menu at the top left, and click on Calculators. Creating OAE Calculators From […]

Date : 04.03.2025 Author : John Worsley
Posted in : Training

In this Admin Guide, we cover OAE Calculators – how to create, categorize, and configure them, plus using math operators, units, and prefixes.

See also the User Guide for OAE Calculators.

To navigate to the OAE Calculators page, click on the Settings menu at the top left, and click on Calculators.

Creating OAE Calculators

From the Calculators main page, you can create a new Calculator by clicking the blue + button in the upper right.

This will open a new, unnamed Calculator that you can modify until it is ready for use.

Start by giving the Calculator a name.

Category

Assigning Categories to Calculators helps admins and users find the Calculator when searching for a Calculator to edit or use for a Line Item.

Type in the Category field to search for the appropriate Category to assign your new Calculator to. You can choose from all the Categories defined in Settings –> Calculators (see Creating Calculator Categories below for more on that).

Subcategories will display their parent Category first, then a slash, then the Subcategory. In the above case, Blast is a Subcategory of Paint.

For instructions on creating Calculator Categories and Subcategories, see the Creating Calculator Categories section below.

Status

By default, the Status of the Calculator will be Development. You can update the Status of a Calculator at any time using the dropdown list.

  • Development – Calculators in this status are not accessible to users. This status indicates you are still working on the Calculator and it is not ready for production use.
  • Active – Calculators in this status can be inserted into Line Items by users. Once Active, calculators cannot be edited or moved back to Development.
  • Archived – Calculators in this status are not searchable by users when inserting a new Calculator into a Line Item. Existing Line Items using an Archived Calculator will not be changed.

Equations

To start building your Calculator, click on the Equations tab.

A Calculator is made up of one or more Equations. You can add additional Equations (rows) with the green + button.

Equations can use common (and many advanced) math functions; see References below for advanced equation options. Note that the letter at the start of each row provides a way to use the results from that Equation as input for a different Equation. Just add “$” in front of the letter to form the variable – the variable for the first line is $a.

Here are the fields for Equations:

  • Name – The name of the Equation
  • Units – Displays as a hint to the user next to the Equation name, to indicate what type of value should be input or what the intended output format is.
  • Equation – The actual Equation
  • Test – The result / value of the Equation. If this row is an Input, the Test value will be required and used for the calculation.
  • Output Hint – Select which column (if any) the resulting value should be sent to in the Line Item.
  • Type – Whether the Equation row is an Input, Output or should be Hidden
    • Input – User will be required to enter a value for the Equation.
    • Output – Valid for an Output in the Line Item
    • Hidden – Equation will not be displayed to users.
    • Item Input – User will be required to select an Assembly Item of the specified Type.
    • Item Output – The result of the equation will be used as the Value input in the selected Assembly Item.
  • Annotation – Additional details or notes about the Equation, that are shown to users when they search for and using Preset Calculators.
    • Note: You have to click the Expand arrow to access Annotations.

Preview

At any point in time, you can preview your Calculator by clicking the calculator button on the right.

This will bring up a screen of the live Calculator for you to experiment with, as a user would.

Commit

Commit will save all of the changes you made to the Equations. Make sure to commit any wanted changes before navigating away from the Equations.

Creating OAE Calculator Categories

From the OAE Calculators main page, click on the Categories tab.

Here you can create a Category by clicking the green + button, then entering a Name.

Subcategories

Once a Category has been created, you can create new Subcategories by clicking the green + button on the Category.

References

OAE Calculators leverage math.js. Operators and Expressions used by math.js can be used in calculator equations. Below are common operators and units.

Operators

OperatorNameExampleResult
+Add4 + 59
-Subtract7 - 34
-Unary minus-4-4
*Multiply2 * 36
/Divide6 / 23
%Percentage8%0.08
%Addition with Percentage100 + 3%103
%Subtraction with Percentage100 - 3%97
% modModulus8 % 32
^Power2 ^ 38
? :Conditional expression15 > 100 ? 1 : -1-1
to, inUnit conversion2 inch to cm5.08 cm
==Equal2 == 4 - 2true
!=Unequal2 != 3true
<Smaller2 < 3true
>Larger2 > 3false
<=Smallereq4 <= 3false
>=Largereq2 + 4 >= 6true

Units

All units can optionally be written in plural form – e.g. 5 meters.

MeasurementUnit
Lengthmeter (m), inch (in), foot (ft), yard (yd), mile (mi), link (li), rod (rd), chain (ch), angstrom, mil
Surface aream2, sqin, sqft, sqyd, sqmi, sqrd, sqch, sqmil, acre, hectareSurface area can be specified as length squared – e.g. ft^2
Volumem3, litre (l, L, lt, liter), cc, cuin, cuft, cuyd, teaspoon, tablespoonVolumes can be specified as length cubed – e.g. ft^3
Liquid volumeminim (min), fluiddram (fldr), fluidounce (floz), gill (gi), cup (cp), pint (pt), quart (qt), gallon (gal), beerbarrel (bbl), oilbarrel (obl), hogshead, drop (gtt)
Anglesrad (radian), deg (degree), grad (gradian), cycle, arcsec (arcsecond), arcmin (arcminute)
Timesecond (s, secs, seconds), minute (mins, minutes), hour (h, hr, hrs, hours), day (days), week (weeks), month (months), year (years), decade (decades), century (centuries), millennium (millennia)
Frequencyhertz (Hz)
Massgram(g), tonne, ton, grain (gr), dram (dr), ounce (oz), poundmass (lbm, lb, lbs), hundredweight (cwt), stick, stone
Electric currentampere (A)
Temperaturekelvin (K), celsius (degC), fahrenheit (degF), rankine (degR)
Amount of substancemole (mol)
Luminous intensitycandela (cd)
Forcenewton (N), dyne (dyn), poundforce (lbf), kip
Energyjoule (J), erg, Wh, BTU, electronvolt (eV)
Powerwatt (W), hp
PressurePa, psi, atm, torr, bar, mmHg, mmH2O, cmH2O
Electricity and magnetismampere (A), coulomb (C), watt (W), volt (V), ohm, farad (F), weber (Wb), tesla (T), henry (H), siemens (S), electronvolt (eV)
Binarybits (b), bytes (B)

Prefixes

Units may also have prefixes.

NameAbbreviationValue
decid1e-1
centic1e-2
millim1e-3
microu1e-6
nanon1e-9
picop1e-12
femtof1e-15
attoa1e-18
zeptoz1e-21
yoctoy1e-24
NameAbbreviationValue
decada1e1
hectoh1e2
kilok1e3
megaM1e6
gigaG1e9
teraT1e12
petaP1e15
exaE1e18
zettaZ1e21
yottaY1e24

Learn More

Check out the rest of our Admin Guides to learn more about configuring OAE.

Categories