Da er strømstøtteberegning for 2023 og 2024 implementert:
private static double CalculateCompensationPerkWhIncludingTax_2023(int siteId, int month, double averageSpotPriceThisMonth, double spotPriceThisHour)
{
double compensationPerkWh = 0.0;
switch (month)
{
case int m when m >= 01 && m <= 08: // January - August
compensationPerkWh = (averageSpotPriceThisMonth - (0.70 * 1.25)) * 0.90; // January - August
break;
case int m when m >= 09:
compensationPerkWh = (spotPriceThisHour - (0.70 * 1.25)) * 0.90; // September - December
break;
}
if (compensationPerkWh < 0.0)
compensationPerkWh = 0.0;
return compensationPerkWh;
}
private static double CalculateCompensationPerkWhIncludingTax_2024(int siteId, int month, double spotPriceThisHour)
{
double compensationPerkWh = (spotPriceThisHour - (0.70 * 1.25)) * 0.90;
return compensationPerkWh;
}