Skip to content

Commit

Permalink
Évite de l'AL en cas de loyer important en maison de retraite
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Dec 2, 2024
1 parent 4a711f8 commit 219e4f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openfisca_nouvelle_caledonie/variables/aide_logement.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,4 +541,10 @@ def formula(household, period):
loyer = household("loyer", period)
loyer_mensuel_plafond = household("loyer_mensuel_plafond", period)

return where(loyer <= loyer_mensuel_plafond, montant, 0)
typologie_logement = household("typologie_logement", period)

return where(
typologie_logement == TypologieLogement.maisonderetraite,
montant,
where(loyer <= loyer_mensuel_plafond, montant, 0)
)

0 comments on commit 219e4f8

Please sign in to comment.