> For the complete documentation index, see [llms.txt](https://docs.pixeleyes.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pixeleyes.de/anleitungen-instructions/deutsch/dokumentation-unserer-shopware-6-plugins/vermietung-and-reservierungen-fur-shopware-6/berechnungslogik.md).

# Berechnungslogik

### ⚙️ Berechnungslogik <a href="#berechnungslogik" id="berechnungslogik"></a>

1. **Grundpreis:** Tagespreis × Anzahl Tage
2. **Wöchentliche Pauschale:** Wenn aktiviert, wird geprüft, ob Wochenpreise günstiger sind
3. **Monatliche Pauschale:** Gleiche Logik, nur für 30-Tage-Zyklen
4. **Wochenendzuschlag:** Grobe Schätzung: 2 Wochenendtage pro Woche

***

## 📘 Berechnungsbeispiele: Wochen- & Monatspauschale <a href="#berechnungsbeispiele-wochen-monatspauschale" id="berechnungsbeispiele-wochen-monatspauschale"></a>

Diese Beispiele zeigen, wie die Preislogik für Mietzeiträume im Plugin funktioniert – insbesondere bei **Wochen-** und **Monatspauschalen**.\
Sie helfen, das Verhalten bei längeren Mietzeiträumen besser nachzuvollziehen.

***

### 🧩 Beispiel 1: Wochenpauschale <a href="#beispiel-1-wochenpauschale" id="beispiel-1-wochenpauschale"></a>

#### **Zeitraum** <a href="#zeitraum" id="zeitraum"></a>

> Vom **16. Oktober bis 24. Oktober**\
> (→ insgesamt **9 Kalendertage**)

#### **Einstellungen** <a href="#einstellungen" id="einstellungen"></a>

| Einstellung     | Wert  |
| --------------- | ----- |
| Tagespreis      | 10 €  |
| Wochenpauschale | 60 €  |
| Monatspauschale | 200 € |

#### **Berechnungsschritte** <a href="#berechnungsschritte" id="berechnungsschritte"></a>

1. **Tagespreis-Grundlage:**
   * 9 Tage × 10 € = 90 €
2. **Wochenpauschale aktiv:**
   * 1 volle Woche (7 Tage) → 60 €
   * 2 Resttage → 2 × 10 € = 20 €
   * Gesamt: 60 € + 20 € = **80 €**
3. **Vergleich:**
   * Tagespreis (90 €)
   * Wochenpauschale (80 €)\
     → **Wochenpauschale ist günstiger**, daher gilt der Preis **80 €**.

#### ✅ **Endpreis** <a href="#endpreis" id="endpreis"></a>

**80 € Gesamtpreis für 9 Tage**

***

### 🧩 Beispiel 2: Monatspauschale <a href="#beispiel-2-monatspauschale" id="beispiel-2-monatspauschale"></a>

#### **Zeitraum** <a href="#zeitraum-1" id="zeitraum-1"></a>

> Vom **1. Oktober bis 2. November**\
> (→ insgesamt **33 Kalendertage**)

#### **Einstellungen** <a href="#einstellungen-1" id="einstellungen-1"></a>

| Einstellung     | Wert  |
| --------------- | ----- |
| Tagespreis      | 10 €  |
| Wochenpauschale | 60 €  |
| Monatspauschale | 200 € |

#### **Berechnungsschritte** <a href="#berechnungsschritte-1" id="berechnungsschritte-1"></a>

1. **Tagespreis-Grundlage:**
   * 33 Tage × 10 € = 330 €
2. **Wochenpauschale:**
   * 4 Wochen (28 Tage) → 4 × 60 € = 240 €
   * 5 Resttage → 5 × 10 € = 50 €
   * Gesamt: 240 € + 50 € = 290 €
3. **Monatspauschale aktiv:**
   * 1 Monat (30 Tage) → 200 €
   * 3 Resttage → 3 × 10 € = 30 €
   * Gesamt: 200 € + 30 € = 230 €
4. **Vergleich:**
   * Tagespreis: 330 €
   * Wochenpreis: 290 €
   * Monatspauschale: 230 €\
     → **Monatspauschale ist am günstigsten.**

#### ✅ **Endpreis** <a href="#endpreis-1" id="endpreis-1"></a>

**230 € Gesamtpreis für 33 Tage**

***

### 💡 Fazit <a href="#fazit" id="fazit"></a>

* Die Berechnung vergleicht immer **Tagespreis**, **Wochenpauschale** und **Monatspauschale**.
* Der **günstigste Gesamtpreis** wird automatisch gewählt.
* Dadurch ist das System flexibel für kurze, mittlere und lange Mietzeiträume.

## 📘 Berechnungsbeispiele: Wochen- & Monatspauschale <a href="#berechnungsbeispiele-wochen-monatspauschale-1" id="berechnungsbeispiele-wochen-monatspauschale-1"></a>

Diese Beispiele zeigen, wie die Preislogik für Mietzeiträume im Plugin funktioniert – insbesondere bei **Wochen-** und **Monatspauschalen**.\
Sie helfen, das Verhalten bei längeren Mietzeiträumen besser nachzuvollziehen.

> 💡 **Hinweis:**\
> Aktiviere **entweder die Wochenpauschale oder die Monatspauschale** – nicht beide gleichzeitig.\
> Das System vergleicht beide Varianten zwar automatisch, doch aus betrieblicher Sicht empfiehlt es sich, nur **eine Art der Pauschale** pro Produkt zu verwenden.

***

### 🧩 Beispiel 1: Wochenpauschale <a href="#beispiel-1-wochenpauschale-1" id="beispiel-1-wochenpauschale-1"></a>

#### **Zeitraum** <a href="#zeitraum-2" id="zeitraum-2"></a>

> Vom **16. Oktober bis 24. Oktober**\
> (→ insgesamt **9 Kalendertage**)

#### **Einstellungen** <a href="#einstellungen-2" id="einstellungen-2"></a>

| Einstellung     | Wert  |
| --------------- | ----- |
| Tagespreis      | 10 €  |
| Wochenpauschale | 60 €  |
| Monatspauschale | 200 € |

#### **Berechnungsschritte** <a href="#berechnungsschritte-2" id="berechnungsschritte-2"></a>

1. **Tagespreis-Grundlage:**
   * 9 Tage × 10 € = 90 €
2. **Wochenpauschale aktiv:**
   * 1 volle Woche (7 Tage) → 60 €
   * 2 Resttage → 2 × 10 € = 20 €
   * Gesamt: 60 € + 20 € = **80 €**
3. **Vergleich:**
   * Tagespreis (90 €)
   * Wochenpauschale (80 €)\
     → **Wochenpauschale ist günstiger**, daher gilt der Preis **80 €**.

#### ✅ **Endpreis** <a href="#endpreis-2" id="endpreis-2"></a>

**80 € Gesamtpreis für 9 Tage**

***

### 🧩 Beispiel 2: Monatspauschale <a href="#beispiel-2-monatspauschale-1" id="beispiel-2-monatspauschale-1"></a>

#### **Zeitraum** <a href="#zeitraum-3" id="zeitraum-3"></a>

> Vom **1. Oktober bis 2. November**\
> (→ insgesamt **33 Kalendertage**)

#### **Einstellungen** <a href="#einstellungen-3" id="einstellungen-3"></a>

| Einstellung     | Wert  |
| --------------- | ----- |
| Tagespreis      | 10 €  |
| Wochenpauschale | 60 €  |
| Monatspauschale | 200 € |

#### **Berechnungsschritte** <a href="#berechnungsschritte-3" id="berechnungsschritte-3"></a>

1. **Tagespreis-Grundlage:**
   * 33 Tage × 10 € = 330 €
2. **Wochenpauschale:**
   * 4 Wochen (28 Tage) → 4 × 60 € = 240 €
   * 5 Resttage → 5 × 10 € = 50 €
   * Gesamt: 240 € + 50 € = 290 €
3. **Monatspauschale aktiv:**
   * 1 Monat (30 Tage) → 200 €
   * 3 Resttage → 3 × 10 € = 30 €
   * Gesamt: 200 € + 30 € = 230 €
4. **Vergleich:**
   * Tagespreis: 330 €
   * Wochenpreis: 290 €
   * Monatspauschale: 230 €\
     → **Monatspauschale ist am günstigsten.**

#### ✅ **Endpreis** <a href="#endpreis-3" id="endpreis-3"></a>

**230 € Gesamtpreis für 33 Tage**

***

### 💡 Fazit <a href="#fazit-1" id="fazit-1"></a>

* Die Berechnung vergleicht immer **Tagespreis**, **Wochenpauschale** und **Monatspauschale**.
* Der **günstigste Gesamtpreis** wird automatisch gewählt.
* Aktiviere **nur eine Pauschalart**, um die Preisstruktur für Kunden klar und nachvollziehbar zu halten.
* Dadurch ist das System flexibel für kurze, mittlere und lange Mietzeiträume.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pixeleyes.de/anleitungen-instructions/deutsch/dokumentation-unserer-shopware-6-plugins/vermietung-and-reservierungen-fur-shopware-6/berechnungslogik.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
