Skip to content

Commit

Permalink
Adapte formules à réorganisation
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvainipp committed Jan 19, 2024
1 parent 86dec3b commit 6dac696
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,25 @@ def formula(individu, period, parameters):
# le seuil d'exonération de cette cotisation est indexé sur le montant minimum d'ARE
seuil_exoneration = parameters(period).chomage.allocations_assurance_chomage.alloc_base.montant_minimum.hors_mayotte


taux_cotisation = parameters(period).prelevements_sociaux.regimes_complementaires_retraite_secteur_prive.cotisation_retraite_complementaire.chomage.taux
cotisation_theorique = are_salaire_journalier_reference * taux_cotisation
allocation_cotisation_deduite = allocation_retour_emploi_journaliere - cotisation_theorique

return round_(
where(
allocation_cotisation_deduite > seuil_exoneration,
-1 * cotisation_theorique,
0),
2)

def formula_2002_07_01(individu, period, parameters):
allocation_retour_emploi_journaliere = individu('allocation_retour_emploi_journaliere', period)
are_salaire_journalier_reference = individu('are_salaire_journalier_reference', period)

# le seuil d'exonération de cette cotisation est indexé sur le montant minimum d'ARE
seuil_exoneration = parameters(period).chomage.allocation_retour_emploi.montant_minimum_hors_mayotte

taux_cotisation = parameters(period).prelevements_sociaux.regimes_complementaires_retraite_secteur_prive.cotisation_retraite_complementaire.chomage.taux
cotisation_theorique = are_salaire_journalier_reference * taux_cotisation
allocation_cotisation_deduite = allocation_retour_emploi_journaliere - cotisation_theorique
Expand Down
11 changes: 11 additions & 0 deletions openfisca_france/model/prestations/aide_permis_demandeur_emploi.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ def formula(individu, period, parameters):

return sans_rsa * sans_aah * sans_retraite * chomage_minimum

def formula_2002_07_01(individu, period, parameters):
sans_rsa = individu.famille('rsa', period) <= 0
sans_aah = individu('aah', period) <= 0
sans_retraite = individu('retraite_brute', period) <= 0

allocation_journaliere_minimum = parameters(period).chomage.allocation_retour_emploi.montant_minimum_hors_mayotte
plafond_chomage = allocation_journaliere_minimum * 31
chomage_minimum = individu('chomage_net', period) <= plafond_chomage

return sans_rsa * sans_aah * sans_retraite * chomage_minimum


class aide_permis_demandeur_emploi_eligibilite_individu(Variable):
value_type = bool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,6 @@ metadata:
1999-07-01: "1997-03-20"
2000-07-01: "2000-12-06"
2001-07-01: "2000-12-06"
2003-07-01: "2003-12-27"
2004-07-01: "2004-05-29"
notes:
1979-07-01:
- title: "Nouvelle convention: fusion des régimes d'assurance et de solidarité"
Expand Down

0 comments on commit 6dac696

Please sign in to comment.