{
"name": "Highest peaks fee",
"applicable_from": "1658-02-26T00:00:00Z",
"applicable_to": null,
"timezone": "Europe/Stockholm",
"datasets": [
{
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
}
],
"functions": [
{
"function": "aggregate",
"input": {
"id": "quarter-hourly-energy-offtake",
"resolution": "quarter_hourly",
"unit": "kWh"
},
"resolution": "hourly",
"aggregation_function": "sum",
"output": {
"id": "hourly-energy-offtake",
"resolution": "hourly",
"unit": "kWh"
}
},
{
"function": "divide",
"numerator": {
"id": "hourly-energy-offtake",
"resolution": "hourly",
"unit": "kWh"
},
"denominator": {
"value": 1.0,
"unit": "hours"
},
"output": {
"id": "hourly-power-offtake",
"resolution": "hourly",
"unit": "kW"
}
},
{
"function": "select",
"input": {
"id": "hourly-power-offtake",
"resolution": "hourly",
"unit": "kW"
},
"condition": {
"type": "highest",
"n": 3,
"resolution": "monthly"
},
"output": {
"id": "hourly-top3-power",
"resolution": "hourly",
"unit": "kW"
}
},
{
"function": "aggregate",
"input": {
"id": "hourly-top3-power",
"resolution": "hourly",
"unit": "kW"
},
"resolution": "monthly",
"aggregation_function": "mean",
"output": {
"id": "monthly-peak",
"resolution": "monthly",
"unit": "kW"
}
},
{
"function": "multiply",
"left": {
"id": "monthly-peak",
"resolution": "monthly",
"unit": "kW"
},
"right": {
"value": 5.0,
"unit": "SEK_per_kW"
},
"output": {
"id": "cost",
"resolution": "monthly",
"unit": "SEK"
}
}
],
"cost": {
"id": "cost",
"resolution": "monthly",
"unit": "SEK"
}
}