Skip to content

Commit

Permalink
inverse les conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
b-michaud committed Dec 18, 2024
1 parent 6b4293d commit 399c661
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2325,11 +2325,11 @@ def formula(foyer_fiscal, period, parameters):
impots_totaux_avant_imputations = iai + cehr - pfu - pfl
impots_totaux_apres_imputations = iai + cehr - pfu - pfl - credits_impot - acomptes_ir

condition_1 = (impots_totaux_avant_imputations > seuil_avant_imputations) * ((impots_totaux_apres_imputations > 0) * (impots_totaux_apres_imputations < seuil_apres_imputations))
condition_1 = (impots_totaux_avant_imputations > seuil_avant_imputations) * ((impots_totaux_apres_imputations <= 0) + (impots_totaux_apres_imputations >= seuil_apres_imputations))

condition_2 = (impots_totaux_avant_imputations <= seuil_avant_imputations) * (impots_totaux_apres_imputations >= 0)
condition_2 = (impots_totaux_avant_imputations <= seuil_avant_imputations) * (impots_totaux_apres_imputations < 0)

condition_correction = (condition_1 + condition_2)
condition_correction = ~(condition_1 + condition_2)

return condition_correction * (iai + cehr + pfu - credits_impot - acomptes_ir)

Expand Down

0 comments on commit 399c661

Please sign in to comment.