# Time-based Tariff

Kilde: https://docs.evcc.io/da/tariffs/time-based-tariff

Time-dependent electricity prices with different price zones for night rates, weekend rates or seasonal tariffs. If zones overlap, the last matching zone applies.

Understøttede funktioner: Global

## Parametre

| Navn | Beskrivelse | Standard / eksempel | |
| --- | --- | --- | --- |
| price | Default price When no zone applies. |  |  |
| zones | Price zones |  |  |
| charges | Charge Additional fixed charge per kWh |  | avanceret |
| chargesZones | Charges zones Time-based grid fees that override the default charge. |  | avanceret |
| tax | Tax Additional percentage charge (e.g. 0.2 for 20%) |  | avanceret |
| formula | Formula Individual formula for calculating the price | math.Max((price + charges) * (1 + tax), 0.0) | avanceret |

## Konfigurationseksempel til evcc.yaml

```yaml
tariffs:
    grid:
      type: template
      template: fixed-zones
      price: # Default price, When no zone applies.
      zones: # Price zones
      charges: # Charge, Additional fixed charge per kWh (optional)
      chargesZones: # Charges zones, Time-based grid fees that override the default charge. (optional)
      tax: # Tax, Additional percentage charge (e.g. 0.2 for 20%) (optional)
      formula: math.Max((price + charges) * (1 + tax), 0.0) # Formula, Individual formula for calculating the price (optional)
```
