diff --git a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ht.py b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ht.py index 4a14599d..0c8e7b15 100644 --- a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ht.py +++ b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ht.py @@ -287,7 +287,7 @@ class prix_essence_sp95_e10_ht(Variable): def formula(menage, period): return menage('prix_essence_sp95_e10_ht_avant_remise', period) - + def formula_2022(menage, period, parameters): prix_essence_sp95_e10_ht_avant_remise = menage('prix_essence_sp95_e10_ht_avant_remise', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl @@ -419,10 +419,10 @@ class prix_essence_sp95_ht(Variable): label = "prix de l'essence SP95 TTC par litre" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_sp95_ht_avant_remise', period) - + def formula_2022(menage, period, parameters): prix_essence_sp95_ht_avant_remise = menage('prix_essence_sp95_ht_avant_remise', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl @@ -563,7 +563,7 @@ def formula_2022(menage, period, parameters): aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl prix_essence_sp98_hors_remise_ttc = prix_essence_sp98_ht_avant_remise - (aide_exceptionnelle_gazole_essence_hl / 100) return prix_essence_sp98_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp98_ht_avant_remise', period) @@ -630,10 +630,10 @@ def formula_2022(menage, period, parameters): aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl prix_essence_e85_ht = prix_essence_e85_ht_avant_remise - (aide_exceptionnelle_gazole_essence_hl / 100) return prix_essence_e85_ht - + def formula_2023(menage, period): return menage('prix_essence_e85_ht_avant_remise', period) - + class prix_gpl_carburant_ht_avant_remise(Variable): value_type = float @@ -670,10 +670,10 @@ class prix_gpl_carburant_ht(Variable): definition_period = YEAR default_value = 0 reference = "https://www.legifrance.gouv.fr/loda/article_lc/LEGIARTI000046489832/2022-10-27/" - + def formula(menage, period): return menage('prix_gpl_carburant_ht_avant_remise', period) - + def formula_2022(menage, period, parameters): prix_gpl_carburant_ht_avant_remise = menage('prix_gpl_carburant_ht_avant_remise', period) aide_exceptionnelle_gpl_carburant_100kg = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gpl_carburant_100kg diff --git a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc.py b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc.py index f3cf0ddd..eab0fb62 100644 --- a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc.py +++ b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc.py @@ -32,14 +32,14 @@ class prix_gazole_b7_hors_remise_ttc(Variable): def formula(menage, period): return menage('prix_gazole_b7_ttc', period) - + def formula_2022(menage, period, parameters): prix_gazole_b7_ttc = menage('prix_gazole_b7_ttc', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_gazole_b7_hors_remise_ttc = prix_gazole_b7_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_gazole_b7_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_gazole_b7_ttc', period) @@ -68,7 +68,7 @@ class prix_gazole_b10_hors_remise_ttc(Variable): label = "prix du gazole B10 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_gazole_b10_ttc', period) @@ -78,7 +78,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_gazole_b10_hors_remise_ttc = prix_gazole_b10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_gazole_b10_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_gazole_b10_ttc', period) @@ -117,7 +117,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp95_e10_ttc = prix_essence_sp95_e10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp95_e10_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp95_e10_ttc', period) @@ -146,7 +146,7 @@ class prix_essence_sp95_hors_remise_ttc(Variable): label = "prix de l'essence SP95 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_sp95_ttc', period) @@ -156,7 +156,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp95_ttc = prix_essence_sp95_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp95_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp95_ttc', period) @@ -185,7 +185,7 @@ class prix_essence_sp98_hors_remise_ttc(Variable): label = "prix de l'essence SP98 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_sp98_ttc', period) @@ -195,7 +195,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp98_ttc = prix_essence_sp98_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp98_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp98_ttc', period) @@ -238,7 +238,7 @@ class prix_essence_e85_hors_remise_ttc(Variable): label = "prix de l'essence E85 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_e85_ttc', period) @@ -248,7 +248,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_e85_hors_remise_ttc = prix_essence_e85_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_e85_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_essence_e85_ttc', period) diff --git a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc_sortie.py b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc_sortie.py index 61ff3f63..f15a3b7c 100644 --- a/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc_sortie.py +++ b/openfisca_france_indirect_taxation/variables/taxes_indirectes/prix_carburants_ttc_sortie.py @@ -115,7 +115,7 @@ def formula_2022(menage, period, parameters): taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_gazole_b7_hors_remise_ttc = prix_gazole_b7_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_gazole_b7_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_gazole_b7_ttc_sortie', period) @@ -152,17 +152,17 @@ class prix_gazole_b10_hors_remise_ttc_sortie(Variable): label = "prix du gazole B10 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_gazole_b10_ttc_sortie', period) - + def formula_2022(menage, period, parameters): prix_gazole_b10_ttc = menage('prix_gazole_b10_ttc_sortie', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_gazole_b10_hors_remise_ttc = prix_gazole_b10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_gazole_b10_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_gazole_b10_ttc_sortie', period) @@ -288,17 +288,17 @@ class prix_essence_sp95_e10_hors_remise_ttc_sortie(Variable): label = "prix de l'essence SP95 E10 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_sp95_e10_ttc_sortie', period) - + def formula_2022(menage, period, parameters): prix_essence_sp95_e10_ttc = menage('prix_essence_sp95_e10_ttc_sortie', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp95_e10_ttc = prix_essence_sp95_e10_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp95_e10_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp95_e10_ttc_sortie', period) @@ -424,17 +424,17 @@ class prix_essence_sp95_hors_remise_ttc_sortie(Variable): label = "prix de l'essence SP95 TTC par litre si la remise n'avait pas eu lieu" definition_period = YEAR default_value = 0 - + def formula(menage, period): return menage('prix_essence_sp95_ttc_sortie', period) - + def formula_2022(menage, period, parameters): prix_essence_sp95_ttc = menage('prix_essence_sp95_ttc_sortie', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp95_ttc = prix_essence_sp95_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp95_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp95_ttc_sortie', period) @@ -563,14 +563,14 @@ class prix_essence_sp98_hors_remise_ttc_sortie(Variable): def formula(menage, period): return menage('prix_essence_sp98_ttc_sortie', period) - + def formula_2022(menage, period, parameters): prix_essence_sp98_ttc = menage('prix_essence_sp98_ttc_sortie', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_sp98_ttc = prix_essence_sp98_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_sp98_ttc - + def formula_2023(menage, period): return menage('prix_essence_sp98_ttc_sortie', period) @@ -631,14 +631,14 @@ class prix_essence_e85_hors_remise_ttc_sortie(Variable): def formula(menage, period): return menage('prix_essence_e85_ttc_sortie', period) - + def formula_2022(menage, period, parameters): prix_essence_e85_ttc = menage('prix_essence_e85_ttc_sortie', period) aide_exceptionnelle_gazole_essence_hl = parameters(period.start).imposition_indirecte.produits_energetiques.aide_exceptionnelle_carburant.gazole_essence_hl taux_plein_tva = parameters(period).imposition_indirecte.tva.taux_de_tva.taux_normal prix_essence_e85_hors_remise_ttc = prix_essence_e85_ttc + (aide_exceptionnelle_gazole_essence_hl / 100) * (1 + taux_plein_tva) return prix_essence_e85_hors_remise_ttc - + def formula_2023(menage, period): return menage('prix_essence_e85_ttc_sortie', period)