Calculation Logic

⚙️ Calculation Logic

  1. Base price: Daily rate × number of days

  2. Weekly flat rate: If activated, the system checks whether the weekly price is cheaper

  3. Monthly flat rate: Same logic applies, but for 30-day cycles

  4. Weekend surcharge: Approximation — two weekend days per week are considered


📘 Calculation Examples: Weekly & Monthly Flat Rates

These examples illustrate how the price calculation logic for rental periods works — especially when using weekly and monthly flat rates.

They help to better understand the behavior for longer rental periods.


🧩 Example 1: Weekly Flat Rate

Period

From October 16 to October 24 (→ total 9 calendar days) Settings

Setting

Value

Daily rate

€10

Weekly flat rate

€60

Monthly flat rate

€200

Calculation Steps

  1. Base calculation:

    • 9 days × €10 = €90

  2. Weekly flat rate active:

    • 1 full week (7 days) → €60

    • 2 remaining days → 2 × €10 = €20

    • Total: €60 + €20 = €80

  3. Comparison:

    • Daily rate: €90

    • Weekly rate: €80 → Weekly flat rate is cheaper, so total = €80

✅ Final price: €80 total for 9 days


🧩 Example 2: Monthly Flat Rate

Period

From October 1 to November 2 (→ total 33 calendar days) Settings

Setting

Value

Daily rate

€10

Weekly flat rate

€60

Monthly flat rate

€200

Calculation Steps

  1. Base calculation:

    • 33 days × €10 = €330

  2. Weekly flat rate:

    • 4 weeks (28 days) → 4 × €60 = €240

    • 5 remaining days → 5 × €10 = €50

    • Total: €240 + €50 = €290

  3. Monthly flat rate active:

    • 1 month (30 days) → €200

    • 3 remaining days → 3 × €10 = €30

    • Total: €200 + €30 = €230

  4. Comparison:

    • Daily rate: €330

    • Weekly rate: €290

    • Monthly flat rate: €230 → Monthly rate is the cheapest.

✅ Final price: €230 total for 33 days

💡 Conclusion

The system always compares the daily rate, weekly flat rate, and monthly flat rate.

The lowest total price is automatically selected.

This makes the system flexible for short, medium, and long rental periods.

💡 Note: It is recommended to activate either the weekly or the monthly flat rate — not both at the same time. While the system automatically compares both, from a business standpoint it’s best practice to use only one type of flat rate per product.

Last updated