Pricing formulas: tiered prices, minimum fees, conditions, rounding
In short: In ÁrazóSzoftver any pricing rule can be written by combining the measures (A, B, C, D…) with built-in functions: max(100; A × 2.8) sets a minimum fee, tier(A; 60; 2.8; 150; 2.4; 2.1) gives a tiered per-m² price, ceilto(A; 100) rounds up to hundreds and if(A > 100; …; …) handles conditions.
Updated: · ÁrazóSzoftverFunctions
| Function | What it does | Example |
|---|---|---|
| max(a; b) | the larger (minimum fee) | max(100; A * 2.8) |
| min(a; b) | the smaller (price cap) | min(A * 7; 600) |
| if(cond; yes; no) | conditional value | if(A > 100; A * 2.1; A * 2.4) |
| tier(x; l1; v1; l2; v2; else) | tiered price: first limit x fits under | tier(A; 60; 2.8; 150; 2.4; 2.1) |
| ceilto(x; step) | round up to a step | ceilto(A; 100) |
| roundto(x; step) | round to a step | roundto(A * 1.2; 5) |
| round(x; decimals) | round | round(A * 0.35; 1) |
| choose(i; a; b; c) | pick by number (e.g. variant: vi) | choose(vi; 0; 40; 80) |
| pct(x; %) | percentage | pct(base; 8) |
| clamp(x; min; max) | keep between limits | clamp(A; 10; 500) |
Variables
- A, B, C: the three main values (e.g. length, width, height); D, E, F…: extra fields
- a, b, c: the same in calculation units (e.g. m instead of cm)
- area = a × b, perimeter = 2 × (a + b)
- qty: quantity, base: sum of base lines so far, vi: variant number
Examples by trade
| Trade | Formula |
|---|---|
| Cleaning with minimum fee | max(100; A * tier(A; 60; 2.8; 150; 2.4; 2.1)) |
| Painting | 2 * (A + B) * C * 7.5 + A * B * 8.5 |
| Printing | ceilto(A; 100) * B * 0.04 + 95 |
| Photo travel | D * 2 * 0.45 |
| Rush surcharge | pct(base; 25) |
Stop calculating by hand
ÁrazóSzoftver calculates all of this automatically and sends a ready PDF quote.
One-time purchase: €559.99 + VATFAQ
Decimal comma or point?
Both work (2,5 or 2.5). Separate arguments with a semicolon (;) or a comma.
What if I make a typo?
The editor flags the error immediately, and the coloured preview shows which part is a variable, a function or a number.