Formule de calcul
Déficit industriels et commerciaux non professionnels des années antérieures
Ce dispositif est à jour !
La dernière date de relecture du dispositif est dimanche 1 janvier 2023.
Formule de calcul OpenFisca à compter du 2023-01-01 :
def formula_2023_01_01(foyer_fiscal, period, parameters): f5rn = foyer_fiscal('f5rn', period) f5ro = foyer_fiscal('f5ro', period) f5rp = foyer_fiscal('f5rp', period) f5rq = foyer_fiscal('f5rq', period) f5rr = foyer_fiscal('f5rr', period) f5rw = foyer_fiscal('f5rw', period) macc_impv_i = foyer_fiscal.members('macc_impv', period) macc_imps_i = foyer_fiscal.members('macc_imps', period) macc_pvct_i = foyer_fiscal.members('macc_pvct', period) aacc_impn_i = foyer_fiscal.members('aacc_impn', period) micro = parameters(period).impot_revenu.calcul_revenus_imposables.rpns.micro def abat_rpns(rev, parameters): return max_(0, rev - min_(rev, max_(parameters.taux * min_(parameters.plafond, rev), micro.microentreprise.montant_minimum))) macc_pvct = foyer_fiscal.sum(macc_pvct_i) macc_impv = foyer_fiscal.sum(macc_impv_i) macc_imps = foyer_fiscal.sum(macc_imps_i) aacc_impn = foyer_fiscal.sum(aacc_impn_i) macc_timp = abat_rpns(macc_impv, micro.microentreprise.regime_micro_bic.marchandises) + abat_rpns(macc_imps, micro.microentreprise.regime_micro_bic.services) return ( min_(f5rn + f5ro + f5rp + f5rq + f5rr + f5rw, aacc_impn + macc_pvct + macc_timp) )
Formule OpenFisca sur GithubVariables et paramètres inscrits dans la formule :
Paramètres :
Variables utilisées par le cas type :
Formule initiale de calcul OpenFisca :
def formula(foyer_fiscal, period, parameters): f5rn = foyer_fiscal('f5rn', period) f5ro = foyer_fiscal('f5ro', period) f5rp = foyer_fiscal('f5rp', period) f5rq = foyer_fiscal('f5rq', period) f5rr = foyer_fiscal('f5rr', period) f5rw = foyer_fiscal('f5rw', period) macc_impv_i = foyer_fiscal.members('macc_impv', period) macc_imps_i = foyer_fiscal.members('macc_imps', period) nacc_impn_i = foyer_fiscal.members('nacc_impn', period) macc_pvct_i = foyer_fiscal.members('macc_pvct', period) aacc_impn_i = foyer_fiscal.members('aacc_impn', period) cga = parameters(period).impot_revenu.calcul_revenus_imposables.rpns.cga_taux2 micro = parameters(period).impot_revenu.calcul_revenus_imposables.rpns.micro def abat_rpns(rev, parameters): return max_(0, rev - min_(rev, max_(parameters.taux * min_(parameters.plafond, rev), micro.microentreprise.montant_minimum))) nacc_impn = foyer_fiscal.sum(nacc_impn_i) macc_pvct = foyer_fiscal.sum(macc_pvct_i) macc_impv = foyer_fiscal.sum(macc_impv_i) macc_imps = foyer_fiscal.sum(macc_imps_i) aacc_impn = foyer_fiscal.sum(aacc_impn_i) macc_timp = abat_rpns(macc_impv, micro.microentreprise.regime_micro_bic.marchandises) + abat_rpns(macc_imps, micro.microentreprise.regime_micro_bic.services) return ( min_(f5rn + f5ro + f5rp + f5rq + f5rr + f5rw, aacc_impn + macc_pvct + macc_timp + (1 + cga) * nacc_impn) )
Formule OpenFisca sur GithubVariables et paramètres inscrits dans la formule :
Paramètres :
- impot_revenu.calcul_revenus_imposables.rpns.cga_taux2
- impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.montant_minimum
- impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bic.marchandises
- impot_revenu.calcul_revenus_imposables.rpns.micro.microentreprise.regime_micro_bic.services
Variables utilisées par le cas type :
Variables et dispositifs influencés par la formule :
La formule du dispositif "Déficit industriels et commerciaux non professionnels des années antérieures" peut avoir une influence sur d'autres dispositifs et variables :