@leximpact/socio-fiscal-openfisca-json
Version:
JSON & YAML data extracted from OpenFisca-France with Indirect Taxation source code (parameters, variables, etc)
501 lines (500 loc) • 16.5 kB
JSON
{
"calculate_output": "calculate_output_divide",
"default_value": 0,
"definition_period": "year",
"dtype": "float32",
"entity": "foyer_fiscal",
"file_path": "openfisca_france/model/prelevements_obligatoires/impot_revenu/contribution_differentielle_hauts_revenus.py",
"formulas": {
"2025-01-01": {
"ast": {
"args": {
"args": [
{
"arg": "foyer_fiscal",
"ast_class": "arg",
"col_offset": 23,
"end_col_offset": 35,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "period",
"ast_class": "arg",
"col_offset": 37,
"end_col_offset": 43,
"end_lineno": 1,
"lineno": 1
},
{
"arg": "parameters",
"ast_class": "arg",
"col_offset": 45,
"end_col_offset": 55,
"end_lineno": 1,
"lineno": 1
}
],
"ast_class": "arguments",
"defaults": [],
"kw_defaults": [],
"kwonlyargs": [],
"posonlyargs": []
},
"ast_class": "FunctionDef",
"body": [
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 115,
"end_lineno": 7,
"lineno": 5,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 24,
"end_lineno": 5,
"id": "majoration_impot_pac",
"lineno": 5
}
],
"value": {
"ast_class": "Attribute",
"attr": "majoration_impot_pac",
"col_offset": 27,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 115,
"end_lineno": 7,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "contribution_differentielle_hauts_revenus",
"col_offset": 27,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 94,
"end_lineno": 7,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "contributions_exceptionnelles",
"col_offset": 27,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 52,
"end_lineno": 7,
"lineno": 5,
"value": {
"ast_class": "Attribute",
"attr": "impot_revenu",
"col_offset": 27,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 22,
"end_lineno": 7,
"lineno": 5,
"value": {
"args": [
{
"ast_class": "Name",
"col_offset": 8,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 14,
"end_lineno": 6,
"id": "period",
"lineno": 6
}
],
"ast_class": "Call",
"col_offset": 27,
"end_col_offset": 9,
"end_lineno": 7,
"func": {
"ast_class": "Name",
"col_offset": 27,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 37,
"end_lineno": 5,
"id": "parameters",
"lineno": 5
},
"keywords": [],
"lineno": 5
}
}
}
}
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 43,
"end_lineno": 8,
"lineno": 8,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 10,
"end_lineno": 8,
"id": "nb_pac",
"lineno": 8
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 26,
"end_col_offset": 34,
"end_lineno": 8,
"lineno": 8,
"value": "nb_pac"
},
{
"ast_class": "Name",
"col_offset": 36,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 42,
"end_lineno": 8,
"id": "period",
"lineno": 8
}
],
"ast_class": "Call",
"col_offset": 13,
"end_col_offset": 43,
"end_lineno": 8,
"func": {
"ast_class": "Name",
"col_offset": 13,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 25,
"end_lineno": 8,
"id": "foyer_fiscal",
"lineno": 8
},
"keywords": [],
"lineno": 8
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 118,
"end_lineno": 12,
"lineno": 10,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 27,
"end_lineno": 10,
"id": "majoration_impot_couple",
"lineno": 10
}
],
"value": {
"ast_class": "Attribute",
"attr": "majoration_impot_couple",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 118,
"end_lineno": 12,
"lineno": 10,
"value": {
"ast_class": "Attribute",
"attr": "contribution_differentielle_hauts_revenus",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 94,
"end_lineno": 12,
"lineno": 10,
"value": {
"ast_class": "Attribute",
"attr": "contributions_exceptionnelles",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 52,
"end_lineno": 12,
"lineno": 10,
"value": {
"ast_class": "Attribute",
"attr": "impot_revenu",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 22,
"end_lineno": 12,
"lineno": 10,
"value": {
"args": [
{
"ast_class": "Name",
"col_offset": 8,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 14,
"end_lineno": 11,
"id": "period",
"lineno": 11
}
],
"ast_class": "Call",
"col_offset": 30,
"end_col_offset": 9,
"end_lineno": 12,
"func": {
"ast_class": "Name",
"col_offset": 30,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 40,
"end_lineno": 10,
"id": "parameters",
"lineno": 10
},
"keywords": [],
"lineno": 10
}
}
}
}
}
},
{
"ast_class": "Assign",
"col_offset": 4,
"end_col_offset": 47,
"end_lineno": 13,
"lineno": 13,
"targets": [
{
"ast_class": "Name",
"col_offset": 4,
"ctx": {
"ast_class": "Store"
},
"end_col_offset": 12,
"end_lineno": 13,
"id": "nb_adult",
"lineno": 13
}
],
"value": {
"args": [
{
"ast_class": "Constant",
"col_offset": 28,
"end_col_offset": 38,
"end_lineno": 13,
"lineno": 13,
"value": "nb_adult"
},
{
"ast_class": "Name",
"col_offset": 40,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 46,
"end_lineno": 13,
"id": "period",
"lineno": 13
}
],
"ast_class": "Call",
"col_offset": 15,
"end_col_offset": 47,
"end_lineno": 13,
"func": {
"ast_class": "Name",
"col_offset": 15,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 27,
"end_lineno": 13,
"id": "foyer_fiscal",
"lineno": 13
},
"keywords": [],
"lineno": 13
}
},
{
"ast_class": "Return",
"col_offset": 4,
"end_col_offset": 84,
"end_lineno": 14,
"lineno": 14,
"value": {
"ast_class": "BinOp",
"col_offset": 11,
"end_col_offset": 84,
"end_lineno": 14,
"left": {
"ast_class": "BinOp",
"col_offset": 11,
"end_col_offset": 40,
"end_lineno": 14,
"left": {
"ast_class": "Name",
"col_offset": 11,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 17,
"end_lineno": 14,
"id": "nb_pac",
"lineno": 14
},
"lineno": 14,
"op": {
"ast_class": "Mult"
},
"right": {
"ast_class": "Name",
"col_offset": 20,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 40,
"end_lineno": 14,
"id": "majoration_impot_pac",
"lineno": 14
}
},
"lineno": 14,
"op": {
"ast_class": "Add"
},
"right": {
"ast_class": "BinOp",
"col_offset": 43,
"end_col_offset": 84,
"end_lineno": 14,
"left": {
"ast_class": "Compare",
"col_offset": 44,
"comparators": [
{
"ast_class": "Constant",
"col_offset": 56,
"end_col_offset": 57,
"end_lineno": 14,
"lineno": 14,
"value": 2
}
],
"end_col_offset": 57,
"end_lineno": 14,
"left": {
"ast_class": "Name",
"col_offset": 44,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 52,
"end_lineno": 14,
"id": "nb_adult",
"lineno": 14
},
"lineno": 14,
"ops": [
{
"ast_class": "Eq"
}
]
},
"lineno": 14,
"op": {
"ast_class": "Mult"
},
"right": {
"ast_class": "Name",
"col_offset": 61,
"ctx": {
"ast_class": "Load"
},
"end_col_offset": 84,
"end_lineno": 14,
"id": "majoration_impot_couple",
"lineno": 14
}
}
}
}
],
"col_offset": 0,
"decorator_list": [],
"end_col_offset": 84,
"end_lineno": 14,
"lineno": 1,
"name": "formula_2025_01_01"
},
"file_path": "openfisca_france/model/prelevements_obligatoires/impot_revenu/contribution_differentielle_hauts_revenus.py",
"parameters": [
"impot_revenu.contributions_exceptionnelles.contribution_differentielle_hauts_revenus.majoration_impot_couple",
"impot_revenu.contributions_exceptionnelles.contribution_differentielle_hauts_revenus.majoration_impot_pac"
],
"source_code": "def formula_2025_01_01(foyer_fiscal, period, parameters):\n # [Majoration à ip_net + pfu + prelevement_forfaitaire_liberatoire + contribution_exceptionnelle_hauts_revenus]\n # III. - 2° (...)\n # majoré de 1 500 € par personne à charge au sens des articles\n majoration_impot_pac = parameters(\n period\n ).impot_revenu.contributions_exceptionnelles.contribution_differentielle_hauts_revenus.majoration_impot_pac\n nb_pac = foyer_fiscal('nb_pac', period)\n # 196 à 196 B et de 12 500 € pour les contribuables soumis à imposition commune.\n majoration_impot_couple = parameters(\n period\n ).impot_revenu.contributions_exceptionnelles.contribution_differentielle_hauts_revenus.majoration_impot_couple\n nb_adult = foyer_fiscal('nb_adult', period)\n return nb_pac * majoration_impot_pac + (nb_adult == 2) * majoration_impot_couple\n",
"start_line_number": 91,
"stop_line_number": 105,
"variables": [
"nb_adult",
"nb_pac"
]
}
},
"json_type": "number",
"label": "Majoration de la contribution différentielle sur les hauts revenus",
"last_value_still_valid_on": "2025-01-01",
"name": "contribution_differentielle_hauts_revenus_majoration",
"reference": {
"0001-01-01": [
{
"href": "https://www.legifrance.gouv.fr/codes/article_lc/LEGIARTI000051200465/2025-02-16"
}
]
},
"referring_variables": [
"contribution_differentielle_hauts_revenus"
],
"start_line_number": 83,
"stop_line_number": 105,
"value_type": "float"
}