feat(kode): bring business economics, ownership, scale and verdicts in line with clarifications 41-61

The accident cost stays in S11 and S31 when the additionality rule binds;
the peak year of M6 is taken among operating years; tax depreciation and
carried losses lose real value with price growth; the special tax deducts
the corporate tax, has a return allowance and carries a negative basis with
interest, so it only meets return above r_e; ownership forms are compared
only with forms that pass the EEA assessment; the overall verdict needs a
negative median to fell a solution and takes whether conditions can be
named; M5 does not hold when both (i) and (ii) are broken; a non-positive
price without the programme is an error in M3. Made-up numbers only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-12 14:33:49 +01:00
commit d4aebad0f9
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
14 changed files with 335 additions and 95 deletions

View file

@ -148,3 +148,10 @@ def test_relativ_prisvirkning_per_omraade(oppdiktet: LagInndata) -> None:
# the price level of the dry year cancels; the factor on the effect does not
tort = kraftsystem.relativ_prisvirkning(inn, Delta_Q=3e6, tort=True)
assert tort["NO1"] == pytest.approx(1.2 * 30.0 / 600.0)
def test_relativ_prisvirkning_krever_positiv_pris_uten_satsingen(oppdiktet: LagInndata) -> None:
"""A price of zero or less without the programme would turn the sign of the ratio."""
inn = oppdiktet(S0=80e6)
with pytest.raises(ValueError, match="not positive"):
kraftsystem.relativ_prisvirkning(inn, Delta_Q=3e6, tort=False)