Skip to content

Conversation

@iskradelta
Copy link

@iskradelta iskradelta commented Mar 19, 2025

negative prices like -0.1 should not be increased by vat, say 25%, to become -0.125 because this is not how it is billed, as it is currently implemented negative prices lead to even more negative "cost".
utility companies instead do -0.1*(1-0.25) to result in -0.075 as price, they move to zero rather than further into negative.
VAT must always increase never decrease :D

@Octofinger
Copy link

Wait, what?
That is exactly how VAT is calculated. VAT on a negative amount makes it even more negative.
25% VAT on -100 SEK will be -125 SEK including VAT.

If you have ever experienced any utility company to reverse VAT on negative prices, please provide a link, because they're doing it wrong.

I sincerely ask you to prove your case here before implementing any changes to this integration.

@dana-se
Copy link

dana-se commented May 5, 2025

The answer I got from my utility company;
25% VAT on -100 SEK will be -125 SEK including VAT.

As I see it, this request is wrong

@StSaens
Copy link

StSaens commented May 13, 2025

This is wrong for NL.
A kWh price of €-0.10 (ex VAT) makes the price including VAT €-0.121

@mikak
Copy link

mikak commented Oct 1, 2025

Negative price VAT calculation is exactly the same as it is for positive price.
The only exception could be that the price is negative almost all the time and thus consumer would be paid and they are not VAT-liable. In practice the VAT is calculated for the total of monthly (or whatever the billing period is) VATless sum and it is always positive (the other case is merely theoretical).
It is possible that some utility companies exist that interpret the sales hour-by-hour but they are definitely the minority. In that case there could be an option for alternative calculation.

@Hellowlol
Copy link
Collaborator

Hellowlol commented Oct 12, 2025

Thanks for the pr but I’m gonna keep the code as is. If your energy provider is handling this differently, please do the vat calculation in the template

@Hellowlol Hellowlol closed this Oct 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants