This pricing model assigns different per-meter rates depending on the range of the slider value. Instead of one flat price per meter, the total cost is calculated segment by segment across predefined breakpoints.
Note: This only works for smaller range considering efficiency.
If Pricing Rules
-
1–10 meters → €3 per meter
-
10–20 meters → €2 per meter
-
20–30 meters → €1 per meter
Calculation Logic
When a value is selected on the slider, the cost is calculated by:
-
Identifying which range(s) the value falls into.
-
Multiplying the meters in each segment by the defined rate.
-
Summing up the results for all segments covered.
Example
Observe the illustration

Example 1: 5 meters
-
Falls entirely in 1–10 range.
-
Calculation:
-
Total = €15
Example 2: 15 meters
-
Covers two ranges:
-
First 10 meters → (10 × €3) = €30
-
Next 5 meters → (5 × €2) = €10
-
-
Calculation:
-
Total = €40
Implementation Notes
-
Since prices are tied to fixed ranges, the pricing should be manually defined per range in your system.
-
If additional ranges are required, simply extend the same logic with new breakpoints and rates.