Progressive Distance Pricing Using Multiple Distance Ranges
This example shows how to calculate a ride price by charging each distance range separately. Instead of applying one rate to the entire trip, the plugin adds the amounts calculated for each part of the journey. The configuration uses one Pricing Rule.
Pricing Scenario
A transportation company charges higher rates for the first kilometers and lower rates for longer distances. Each portion of the ride is priced according to the range it covers:
| Distance Range | Rate per Kilometer |
|---|---|
| 0–10 km | $4.00 |
| 10–20 km | $3.00 |
| 20–40 km | $2.50 |
| 40 km and above | $2.00 |
For a 30 km ride, the charge is calculated as 10 × $4.00 + 10 × $3.00 + 10 × $2.50 = $95.00. The rate for each range applies only to the distance traveled within that range.
Step 1. Configure Vehicle Pricing
Go to ‘Chauffeur Booking System’ -> ‘Vehicles’, edit the vehicle you want to use, and open the ‘Prices’ tab.
| Setting | Value |
|---|---|
| ‘Booking Sum Type’ | ‘Variable’ |
| ‘Initial’ | 0.00 |
| ‘Per Kilometer’ | 0.00 |
For this example, leave the other vehicle price components at 0.00 so that no additional charges affect the fare.
Step 2. Create a Pricing Rule
Go to ‘Chauffeur Booking System’ -> ‘Pricing Rules’ and click ‘Add New’. Give the rule a descriptive name, such as Progressive Distance Pricing.
Conditions
In ‘Conditions’ -> ‘General’, choose ‘Distance’ under ‘Service Types’. In ‘Conditions’ -> ‘Vehicles’, select the vehicle configured in Step 1.
Open ‘Conditions’ -> ‘Distance’ and add the following rows to the ‘Distance’ table:
| From (km) | To (km) | Price Alter Type | Price |
|---|---|---|---|
| 0 | 10 | ‘Set value’ | 4.00 |
| 10 | 20 | ‘Set value’ | 3.00 |
| 20 | 40 | ‘Set value’ | 2.50 |
| 40 | 9999 | ‘Set value’ | 2.00 |
Keep adjacent ranges connected at the same boundary, such as 0–10 and 10–20.
Prices
Open the ‘Prices’ tab and configure:
| Setting | Value |
|---|---|
| ‘Price Source Type’ | ‘Calculation based on distance (all ranges)’ |
| ‘Booking Sum Type’ | ‘Variable’ |
| ‘Use Initial Fee for All Ranges’ | ‘Enable’ |
The rule calculates the charge for each distance range and adds the total to the vehicle’s existing Initial Fee. In this example, the vehicle’s Initial Fee is 0.00, so the fare consists only of the summed distance charges.
Example Price Calculations
| Ride Distance | Calculation | Final Price |
|---|---|---|
| 2.5 km | 2.5 × $4.00 | $10.00 |
| 14.1 km | 10 × $4.00 + 4.1 × $3.00 | $52.30 |
| 25.2 km | 10 × $4.00 + 10 × $3.00 + 5.2 × $2.50 | $83.00 |
| 33 km | 10 × $4.00 + 10 × $3.00 + 13 × $2.50 | $102.50 |
| 98.7 km | 10 × $4.00 + 10 × $3.00 + 20 × $2.50 + 58.7 × $2.00 | $237.40 |
| 474.4 km | 10 × $4.00 + 10 × $3.00 + 20 × $2.50 + 434.4 × $2.00 | $988.80 |
Unlike ‘Calculation based on distance (exact range)’, which applies a single rate to the entire ride, ‘Calculation based on distance (all ranges)’ calculates the cost of each distance band. With ‘Use Initial Fee for All Ranges’ enabled, these amounts are summed directly.
Displaying the Fare in the Booking Summary
By default, the calculated fare appears as Initial Fee in the booking summary. To show the full amount as the vehicle price instead, go to ‘Chauffeur Booking System’ -> ‘Booking Forms’ -> ‘General’ -> ‘Prices’ and set ‘Hide Fees’ to ‘Hide in booking summary and include in vehicle price’. The total price remains unchanged.
Summary
Document version: 1.0
Last updated: November 24, 2026
Plugin version: 9.8+