Skip to content

Commit

Permalink
Ajoute une implémentation OK des AL
Browse files Browse the repository at this point in the history
  • Loading branch information
guillett committed Nov 21, 2024
1 parent 3e1599e commit 980ab79
Show file tree
Hide file tree
Showing 18 changed files with 631 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Participation minimale
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
unit: currency-FCP
values:
2015-12-01:
value: 40000
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Participation minimale
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
unit: currency-FCP
values:
2015-12-01:
value: 10000
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Participation minimale lorsque la famille perçoit des aides sociales ou des bourses
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
unit: currency-FCP
values:
2015-12-01:
value: 5000
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
description: Pourcentage de la base ressources pour le calcul de la contribution locataire
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
type: single_amount
brackets:
- threshold:
2015-12-01:
value: 0
amount:
2015-12-01:
value: .28
- threshold:
2015-12-01:
value: 3
amount:
2015-12-01:
value: .26
- threshold:
2015-12-01:
value: 4
amount:
2015-12-01:
value: .24
- threshold:
2015-12-01:
value: 5
amount:
2015-12-01:
value: .22
- threshold:
2015-12-01:
value: 6
amount:
2015-12-01:
value: .2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Pourcentage de la base ressources pour le calcul de la contribution locataire
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
values:
2015-12-01:
value: 0.05
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Amount of the basic income
values:
2015-12-01:
value: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Amount of the basic income
values:
2015-12-01:
value: 0.7
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Amount of the basic income
values:
2015-12-01:
value: 0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Amount of the basic income
values:
2015-12-01:
value: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
description: Amount of the basic income
values:
2015-12-01:
value: 44500
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Pourcentage du solde de revenu caractérisant le plafond du supplément de loyer
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
values:
2015-12-01:
value: 0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
description: Pourcentage du loyer de référence lorsque le solde de revenu est négatif
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
chambre:
2015-12-01:
value: 0.20 # Clarification nécessaire
maisonderetraite:
2015-12-01:
value: 0.20 # Clarification nécessaire
f1:
2015-12-01:
value: 0.20
f2:
2015-12-01:
value: 0.20
f3:
2015-12-01:
value: 0.10
f4:
2015-12-01:
value: 0.10
f5p:
2015-12-01:
value: 0.10
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
description: Pourcentage du loyer de référence lorsque le solde de revenu est positif
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
chambre:
2015-12-01:
value: 0.10 # Clarification nécessaire
maisonderetraite:
2015-12-01:
value: 0.10 # Clarification nécessaire
f1:
2015-12-01:
value: 0.10
f2:
2015-12-01:
value: 0.10
f3:
2015-12-01:
value: 0.05
f4:
2015-12-01:
value: 0.05
f5p:
2015-12-01:
value: 0.05
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
description: Pourcentage du loyer de référence lorsque le solde de revenu est positif
metadata:
reference: Article 8 de la délibération n° 286 du 18 avril 2007
values:
2015-12-01:
value: 0.5
44 changes: 44 additions & 0 deletions openfisca_nouvelle_caledonie/tests/aide_logement.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
- period: 2024-11
absolute_error_margin: 1
input:
aide_logement_coef_error: .8
loyer: 58366
charges_locatives: 6546
typologie_logement: f1
aide_sociale: 94050
output:
aide_logement: 46931

- period: 2024-11
absolute_error_margin: 1
input:
aide_logement_coef_error: .8
loyer: 58366
charges_locatives: 6546
typologie_logement: f1
output:
aide_logement: 50546

# - period: 2024-11
# absolute_error_margin: 1
# input:
# aide_logement_coef_error: .8
# loyer: 58366
# charges_locatives: 6546
# typologie_logement: f1
# personne_retraitee: true
# aide_sociale: 94050
# output:
# aide_logement: 50863


- period: 2024-11
absolute_error_margin: 1
input:
aide_logement_coef_error: .8
loyer: 24106
charges_locatives: 8528
typologie_logement: f2
salaire: 55126
output:
aide_logement: 17113
2 changes: 1 addition & 1 deletion openfisca_nouvelle_caledonie/tests/basic_income.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
age: 18
salary: 0
output:
basic_income: 0
basic_income: 1000

- name: In Dec 2015, an adult with no salary should get a basic income of 600
period: 2015-12
Expand Down
Loading

0 comments on commit 980ab79

Please sign in to comment.