min(calculation variable 1, calculation variable)
For the reaction:
N2 + 3 H2 → 2NH3
Calculate the number of moles of NH3 formed when {n2} mol of N2 is treated with {h2} H2.
min(2/3*{h2}2*{n2})
This also allows for calculations with grams of starting materials and grams of products. You just need to determine the calculation ahead of time with molar mass and mole ratios.