-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prise en compte du patrimoine dans les AL et le RSA #902
Conversation
epargne_non_remuneree = individu('epargne_non_remuneree', period) | ||
livret_a = individu('livret_a', period) | ||
taux_livret_a = parameters(period).epargne.livret_a.taux | ||
epargne_revenus_non_imposables = individu('epargne_revenus_non_imposables', period) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi est ce que 'epargne_revenus_imposables' n'est pas pris en compte ? ou valeur_locative_loue
?
Est ce que c'est compris dans revenus_capital
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La contribution de l'épargne générant des revenus imposable se fait par l'intermédiaire de revenus_capital
. Celle des biens loués par revenus_locatifs
.
value_type = float | ||
entity = Individu | ||
base_function = requested_period_last_value | ||
label = u"Intérêts versés pour l'épargne sur livret" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Livret A compris ou hors Livret A ?
entity = Individu | ||
base_function = requested_period_last_value | ||
label = u"Valeur locative des biens immobiliers et des terrains loués" | ||
definition_period = MONTH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut on ajouter un set_input = set_input_divide_by_period
, les loyers étant généralement stables sur l'année ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour moi, set_input_divide_by_period
s'utilise pour des flux et je voyais la valeur locative comme n'en n'étant pas un.
En effet, pour une année donnée, pour moi, la bonne valeur de cette variable n'est pas la somme sur les 12 mois mais la dernière valeur connue (j'ai regardé si il existe un tel set_input
mais je n'ai pas trouvé).
Est-ce que cela te paraît sensé ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjello as-tu des éléments complémentaires ? Que penses-tu de la perspective décrite ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je suis d'accord avec ton analyse @guillett
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Attention, quand je lis "la bonne valeur de cette variable n'est pas la somme sur les 12 mois mais la dernière valeur connue " j'ai l'impression qu'on raisonne output, alors que les set_input définisse le comportement vis à vis des input.
La question à se poser c'est : quel est le meilleur comportement à avoir si un utilisateur déclare en entrée une valeur_locative_loue
pour 2018
par exemple.
- Dans le cas d'un flux, on utilise
set_input_divide_by_period
qui va diviser le montant entre les 12 mois de l'année - Dans le cas d'une variable "d'état", on peut utiliser
set_input_dispatch_by_period
, qui va copier coller le montant défini pour l'année sur tous les mois de l'année. - Dans le reste des cas, on préfère retourner une erreur.
à voir dans ce cas précis si un set_input_dispatch_by_period
ne serait pas justifié
class valeur_locative_immo_non_loue(Variable): | ||
value_type = float | ||
entity = Individu | ||
base_function = requested_period_last_value | ||
label = u"Valeur locative des biens immobiliers possédés et non loués" | ||
definition_period = MONTH | ||
set_input = set_input_divide_by_period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pourquoi avoir retiré le set_input
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cf. #902 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En tout cas c'est de fait un breaking change, peut-être que ça mérite d'expliquer dans le changelog qu'il n'est plus possible de définir une valeur annuelle pour valeur_locative_immo_non_loue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le label Valeur locative des biens immobiliers possédés et non loués
me déroute parce que, la variable étant définie sur le mois, j'ai envie d'inputer la valeur locative mensuelle.
Je propose la label suivant : '"Valeur locative, à l'année, des biens immobiliers possédés et non loués"'
Qu'en penses-tu ?
@@ -132,4 +139,3 @@ class valeur_locative_terrains_non_loue(Variable): | |||
base_function = requested_period_last_value | |||
label = u"Valeur locative des terrains possédés et non loués" | |||
definition_period = MONTH | |||
set_input = set_input_divide_by_period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf. #902 (comment)
CHANGELOG.md
Outdated
# 21.0.0 [#902](https://github.com/openfisca/openfisca-france/pull/902) | ||
|
||
* Évolution du système socio-fiscal. | ||
* Périodes concernées : à partir du 1er octobre 2016. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rsa_base_ressources_patrimoine_individu
est modifié à partir de juin 2009
@Anna-Livia y-a-t-il des modifications encore en attente ? Merci beaucoup. |
@Anna-Livia vient de m'indiquer que cette PR ne fait plus partie de l'itération actuelle. |
capitaux_non_productifs = livret_a + epargne_revenus_non_imposables | ||
foncier = valeur_locative_loue + valeur_locative_immo_non_loue + valeur_locative_terrains_non_loue | ||
|
||
patrimoine = epargne_revenus_imposables + capitaux_non_productifs + foncier |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est normal qu'on ajouter une épargne (un stock) à une valeur locative, a priori plutôt un flux ?
@@ -117,13 +117,20 @@ class revenus_locatifs(Variable): | |||
set_input = set_input_divide_by_period | |||
|
|||
|
|||
class valeur_locative_loue(Variable): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quelle est la différence entre valeur_locative_loue
et revenus_locatifs
?
@fpagnoux merci pour tes retours. Effectivement, j'ai eu une mauvaise compréhension de la législation. J'ai questionné la DHUP pour avoir de nouvels éléments. |
8de6df9
to
93854f4
Compare
class valeur_locative_immo_non_loue(Variable): | ||
value_type = float | ||
entity = Individu | ||
base_function = requested_period_last_value | ||
label = u"Valeur locative des biens immobiliers possédés et non loués" | ||
definition_period = MONTH | ||
set_input = set_input_divide_by_period |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le label Valeur locative des biens immobiliers possédés et non loués
me déroute parce que, la variable étant définie sur le mois, j'ai envie d'inputer la valeur locative mensuelle.
Je propose la label suivant : '"Valeur locative, à l'année, des biens immobiliers possédés et non loués"'
Qu'en penses-tu ?
@Anna-Livia si c'est bon pour toi, est-ce que je peux te laisser valider, rebase et merge ? Merci beaucoup. |
@openfisca/msa avez-vous des remarques sur cette PR vis à vis de #897 ? |
0d669f9
to
8769f0b
Compare
* Sourced from https://fr.wikipedia.org/wiki/Livret_A
* Update description
* to taux_interet_forfaitaire_epargne_non_imposable
* New name valeur_locative_terrains_non_loues
* Use to accelerate startup time * Hacky
* Différencie valeur patrimoniale et valeur locative
…cative_terrains_non_loue * New name prestations.minima_sociaux.rsa.patrimoine.abattement_valeur_locative_terrains_non_loues (s added)
- Patrimoine 80.000 € et - Valeur locative à 400 € / mois
interets_epargne_sur_livrets
etepargne_non_remuneree
livret_a
etepargne_revenus_non_imposables
valeur_locative_loue
etepargne_revenus_imposables
Ces changements :
Cette PR contient des modifications qui nécessite une montée de version majeure.