openfisca / openfisca-france Goto Github PK
View Code? Open in Web Editor NEWFrench tax and benefit system for OpenFisca
Home Page: https://openfisca.org/fr
French tax and benefit system for OpenFisca
Home Page: https://openfisca.org/fr
Actuellement la prestation asf_elig concerne les personnes alors qu'elle devrait être dans famille et utiliser des personnes du foyer.
Issue by benjello from Saturday Mar 01, 2014 at 00:13 GMT
Originally opened as openfisca/openfisca-core#242
Issue by benjello from Saturday Jun 15, 2013 at 18:35 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/243
Please restart from the TODO. We need to write a clean and explicit code for that part.
Issue by benjello from Friday Feb 28, 2014 at 23:59 GMT
Originally opened as openfisca/openfisca-core#162
Issue by AlexisEidelman from Tuesday Apr 16, 2013 at 08:23 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/159
So far in the model, household benefit are calculated using the "loyer" variable.
It is assumed that each familiy pay the rent of its household (men) but in case of more than one family that rent should be shared into the families.
You can think about house-sharing to be convinced.
By the way, if I'm not wrong, there is a special legislation in that case.
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#98
Issue by benjello from Friday Dec 07, 2012 at 09:32 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/95
In 2009 maxrev = 50000 nmen 101, 1 person there is some bouclier fiscal at 500 euros
Issue by benjello from Friday Feb 28, 2014 at 23:56 GMT
Originally opened as openfisca/openfisca-core#26
Issue by clems from Thursday May 03, 2012 at 12:52 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/23
Add a module patrimoine in France which computes the 'Impôt de solidarité sur la fortune".
Issue by benjello from Friday Feb 28, 2014 at 23:57 GMT
Originally opened as openfisca/openfisca-core#76
Issue by clems from Wednesday Oct 10, 2012 at 21:27 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/73
Issue by benjello from Saturday Mar 01, 2014 at 00:09 GMT
Originally opened as openfisca/openfisca-core#211
Issue by AlexisEidelman from Thursday May 30, 2013 at 15:32 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/212
I try to clean the get value function.
Doing this I figured out that there is might be a problem with actual code and alloc in irpp.
It's not a big deal as it's still virtual for now, but is was coded as it was simpler than it is in real.
I mean in some case, a familiy is on two declaration (non married couple) so what af should we put ? There is also more complicated case. My point is just that there is no order between fam and foy so a legislation should be explicit on that point.
I change the code by commenting these line and let af = 0 instead.
Bonjour,
Je viens de repérer une incohérence (a priori apparue après le Hackathon de vendredi).
Voici la simulation :
{
"scenarios": [
{
"test_case": {
"familles": [
{
"parents": [
"ind0"
]
}
],
"foyers_fiscaux": [
{
"declarants": [
"ind0"
]
}
],
"individus": [
{
"activite": "Actif occupé",
"birth": "1989-01-01",
"id": "ind0",
"sali": 60000,
"statmarit": "Pacsé"
},
{
"activite": "Actif occupé",
"birth": "1989-01-01",
"id": "ind1",
"sali": 0,
"statmarit": "Pacsé"
}
],
"menages": [
{
"personne_de_reference": "ind0",
"so": "Locataire ou sous-locataire d'un logement loué vide non-HLM",
"loyer": 1300
}
]
},
"legislation_url": "http://openfisca.fr/api/1/default-legislation",
"year": 2013
}
]
}
En tout logique ce ménage n'a pas droit au RSA étant donné les rémunérations élevées de l'individu 0. Pourtant il a droit au RSA socle dans la réponse.
Y-a-t'il une erreur dans ma requête ?
Issue by benjello from Saturday Mar 01, 2014 at 00:21 GMT
Originally opened as openfisca/openfisca-core#311
Issue by MalkIPP from Monday Dec 23, 2013 at 18:18 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/312
Very needed for testing
Issue by benjello from Friday Feb 28, 2014 at 23:59 GMT
Originally opened as openfisca/openfisca-core#194
Issue by benjello from Tuesday May 21, 2013 at 16:38 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/191
Using revenus du patrimoine et revenus de placements as in here:
http://vosdroits.service-public.fr/F2329.xhtml
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#110
Issue by Pyke75 from Monday Jan 28, 2013 at 14:21 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/107
Vérifier si la législation n' pas changé en 2010.
Issue by benjello from Saturday Mar 01, 2014 at 00:22 GMT
Originally opened as openfisca/openfisca-core#315
Issue by benjello from Tuesday Feb 25, 2014 at 21:26 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/316
rsa_act_i
NumPy boolean array indexing assignment cannot assign 21557 input values to the 21327 output values where the mask is true
ppe
Error could come from data or from implementation
Issue by benjello from Saturday Mar 01, 2014 at 00:14 GMT
Originally opened as openfisca/openfisca-core#257
Issue by benjello from Thursday Jun 27, 2013 at 12:08 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/258
Write a good check_consistency of SurveySimulation input_table.
Use it to fix the data produced in build_survey
Sur la fiche de calcul des impôts des revenus 2013, il n'y a plus les crédits d'impôts (alors qu'ils apparaissent dans la notice).
Issue by benjello from Friday Feb 28, 2014 at 23:59 GMT
Originally opened as openfisca/openfisca-core#145
Issue by bouvard from Thursday Apr 04, 2013 at 14:22 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/142
try to identify those who are adopted in order to compute the good amount of "Paje: prime d'adoption" and "Paje: base adoption"(the eligibility conditions are different from "paje: base naissance".
Nouvelle cotisation sur les pensions retraites, pré-retraites et d'invalidité prévu par la LFSS 2013. A partir du 1e avril 2013. Taux = 0.3%
Issue by benjello from Saturday Mar 01, 2014 at 00:13 GMT
Originally opened as openfisca/openfisca-core#237
Issue by bouvard from Tuesday Jun 11, 2013 at 10:12 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/238
le format des cases de déclaration d'impôt dans openfisca est celui utilisé depuis la déclaration 2009 (1 chiffre 2 lettres). Avant c'était 2 lettres seulement.
Le barème du Complément Familial a été mis à jour au 1er avril 2014.
Par ailleurs en décembre 2013 a été créé le Complément Familial Majoré pour les familles vivant sous le seuil de pauvreté. Son barème a même été réévalué le 23 avril 2014.
À vue de nez, le Complément Majoré n'existe pas encore dans OpenFisca.
Issue by benjello from Saturday Mar 01, 2014 at 00:14 GMT
Originally opened as openfisca/openfisca-core#256
Issue by benjello from Thursday Jun 27, 2013 at 12:04 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/257
Les modalités de calcul de la PAJE pour les enfants nés après le 1er avril 2014 ont été changées.
Il faudra s'organiser pour corriger ça.
[Ceci est un reminder]
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#103
Issue by Pyke75 from Friday Dec 14, 2012 at 15:06 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/100
Issue by benjello from Saturday Mar 01, 2014 at 00:18 GMT
Originally opened as openfisca/openfisca-core#289
Issue by benjello from Tuesday Sep 24, 2013 at 20:53 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/290
l'agrégat al (ind) n'est pas égal (inférieur ?) à la somme de af, als, apl.
Bizarre
@bouvard: Error for f2dc year 2010 and 2011.
2013 needed.
Issue by benjello from Saturday Mar 01, 2014 at 00:09 GMT
Originally opened as openfisca/openfisca-core#217
Issue by AlexisEidelman from Monday Jun 03, 2013 at 15:08 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/218
men is not always a unique family. When not, isol is not very meaningful.
An option is to transfor typ_men into typ_fam, calculated for a familiy. Then do typ_men = typ_fam if only one family in men, and add a new type otherwise.
Issue by benjello from Saturday Mar 01, 2014 at 00:20 GMT
Originally opened as openfisca/openfisca-core#304
Issue by AlexisEidelman from Monday Nov 11, 2013 at 10:30 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/305
I'm not sure about what is done with fip people. If I got it well, they are incluced in the erf data as if there were "normal" people. But they're not. They don't live in the household. In particular that means they're not in the family.
Example :
I'm a 6 years old child. I live with my mum, and I'm on my father'fiscal declaration. I'm once EE, once FIP. If you change my status and add me in the erf in my father household then I'm counted twice, and there is two allocation for me...
Everyone agree to change ?
Lorsqu'on effectue une simulation via l'api avec un scénario où l'on définit le revenu d'un individu avec la variable salsuperbrut, on a sali et salnet à 0. Par ailleurs, revdisp est toujours à 5255.464355 quelque soit salsuperbrut.
L'exemple précis du bug est dans un notebook visible ici (voir le tableau à la fin): http://nbviewer.ipython.org/urls/raw.githubusercontent.com/fmassot/openfisca-web-notebook/master/test_salairesuperbrut.ipynb?create=1
Le seuil de non recouvrement de l'IR à 61e existe dans param.xml (cf. _P.ir.seuil_recouvrement) mais pas appliqué dans irpp.py. Or il le faut, dit http://www2.impots.gouv.fr/documentation/2013/brochure_ir/files/assets/basic-html/page310.html p310.
N'est ce pas ? Ou alors je me trompe, dans ce cas, pourquoi ?
Issue by benjello from Saturday Mar 01, 2014 at 00:14 GMT
Originally opened as openfisca/openfisca-core#259
Issue by benjello from Thursday Jun 27, 2013 at 12:11 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/260
Develop a tool for systematic debugging of opennfisca output by compraing them to erf data.
@bouvard: uncomment the values to check the bug.
I presume an error in the date f the isf.
And beware of csg and crds
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#111
Issue by AlexisEidelman from Thursday Feb 07, 2013 at 16:48 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/108
La case alt sert pout les scénarios mais doit être cohérente avec nbh (ou une autre). Il faudrait un contrôle de ça quand on charge une base.
Issue by benjello from Saturday Mar 01, 2014 at 00:22 GMT
Originally opened as openfisca/openfisca-core#316
Issue by emmanuelgratuze from Thursday Feb 27, 2014 at 17:15 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/317
RSA à 5000 euros pour un salaire imposable de 300000000000 d'euros.
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#112
Issue by Pyke75 from Thursday Feb 28, 2013 at 15:50 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/109
La condition de présence d'enfant de moins de trois ans n'est pas toujours nécessaire
http://vosdroits.service-public.fr/F502.xhtml
Issue by benjello from Friday Feb 28, 2014 at 23:57 GMT
Originally opened as openfisca/openfisca-core#56
Issue by sarahdi from Wednesday Jun 06, 2012 at 14:21 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/53
those taxations should be included in imp1 to be reimbursed.
also "impots sur les plus-values/ et prélèvements libératoires" should be added.
@benjello: Should fix test_net_to_brut
Currently undone
Issue by benjello from Friday Feb 28, 2014 at 23:56 GMT
Originally opened as openfisca/openfisca-core#29
Issue by sarahdi from Friday May 11, 2012 at 14:51 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/26
in graph- change color code of isf
L'ASPA n'est apparemment pas calculée de manière optimale (doublons dans param.xml, notamment entre le montant et le plafond).
Je regarde ça dès que possible (la CNAV vient me voir mercredi).
Actuellement la prestation ppe_base concerne les personnes alors qu'elle concerne les foyers fiscaux (crédit d'impôt individuel)
@bouvard: Bug in microsocial
Issue by benjello from Saturday Mar 01, 2014 at 00:18 GMT
Originally opened as openfisca/openfisca-core#287
Issue by benjello from Tuesday Sep 24, 2013 at 09:04 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/288
It is now in scénario de réforme and should be in the main node of ir.
Bonjour,
Voici un cas qui donne un calcul de RSA socle incorrect.
Normalement ici je devrais avoir autour de 750 euros (2 parents, 1 enfant, pas de revenus, forfait logement) or je n'ai que 630 euros.
{
"scenarios": [
{
"test_case": {
"familles": [
{
"parents": [
"demandeur",
"demandeur.conjoint"
],
"enfants": [
"demandeur.enfant1"
]
}
],
"foyers_fiscaux": [
{
"declarants": [
"demandeur",
"demandeur.conjoint"
],
"personnes_a_charge": [
"demandeur.enfant1"
]
}
],
"individus": [
{
"id": "demandeur",
"birth": "1979-12-31",
"statmarit": 1
},
{
"id": "demandeur.conjoint",
"birth": "1979-12-31",
"statmarit": 1
},
{
"id": "demandeur.enfant1",
"birth": "1999-12-31"
}
],
"menages": [
{
"personne_de_reference": "demandeur",
"so": 6,
"conjoint": "demandeur.conjoint",
"enfants": [
"demandeur.enfant1"
]
}
]
},
"legislation_url": "http://api.openfisca.fr/api/1/default-legislation",
"year": 2014
}
]
}
Peut-être un problème avec la formule nb_par ?
Merci d'avance :)
Issue by benjello from Friday Feb 28, 2014 at 23:56 GMT
Originally opened as openfisca/openfisca-core#26
Issue by clems from Thursday May 03, 2012 at 12:52 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/23
Add a module patrimoine in France which computes the 'Impôt de solidarité sur la fortune".
Issue by benjello from Friday Feb 28, 2014 at 23:56 GMT
Originally opened as openfisca/openfisca-core#6
Issue by clems from Wednesday Nov 23, 2011 at 18:17 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/3
Les cotisations sociales sur les revenus au barèmes (csgcap_bar) agrège la csg sur les revenus du capital soumis au barème, mais aussi sur les revenus fonciers et les rentes viagères à titres onéreux. Il faudrait séparer les 3 variables par soucis d'harmonisation et de clarté.
Issue by benjello from Friday Feb 28, 2014 at 23:59 GMT
Originally opened as openfisca/openfisca-core#184
Issue by bouvard from Tuesday May 14, 2013 at 10:00 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/181
there is too much API in 2009, API is included in rsa in june 2009. Perhaps it's due to "annualisation" of api.
Issue by benjello from Saturday Mar 01, 2014 at 00:15 GMT
Originally opened as openfisca/openfisca-core#263
Issue by benjello from Friday Jul 05, 2013 at 10:06 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/264
Should separate data.py and model.py from the libraries of prestations
Le calcul de la prime pour l'emploi est délicat. La meilleure source que j'ai trouvée est wikipedia (http://fr.wikipedia.org/wiki/Prime_pour_l%27emploi) combinée avec la notice des impôts (cf. NOT dans https://www.dropbox.com/home/IDEP_OPENFISCA/python_project/mSim/doc/Documentation/formulaires%20IR/Formulaires%202012). Le revenu pris en compte pour le calcul de la PPE est le revenu d'activité. Il semble qu'il y a une anomalie dans le fichier irpp.py qui clacule la base de ressources utile au calcul de la PPE, dans ppe_rev 👍
on lit " rev_ns = min(0, rpns) / ppe.abatns + max_(0, rpns) * ppe.abatns
return rev_sa + rev_ns"
C'est étrange qu'un revenu négatif fasse baisser la base de ressources (donc la PPE) (min(0,rpns)).
Je vais essayer de définir dans une autre fonction les revenus d'activité salarié et non salarié, qu'on pourra reprendre dans _ppe_rev.
@clems @benjello
Issue by benjello from Saturday Mar 01, 2014 at 00:21 GMT
Originally opened as openfisca/openfisca-core#312
Issue by LouisePaulDelvaux from Thursday Feb 13, 2014 at 16:15 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/313
Problème se pose notamment pour :
Issue by benjello from Friday Feb 28, 2014 at 23:58 GMT
Originally opened as openfisca/openfisca-core#106
Issue by benjello from Tuesday Dec 18, 2012 at 11:04 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/103
Some ras_act are negative. rsa is attributated to famille
Issue by benjello from Saturday Mar 01, 2014 at 00:15 GMT
Originally opened as openfisca/openfisca-core#273
Issue by benjello from Wednesday Jul 17, 2013 at 17:13 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/274
Problem with act5 enum in distribution. Please check
Issue by benjello from Friday Feb 28, 2014 at 23:59 GMT
Originally opened as openfisca/openfisca-core#178
Issue by bouvard from Tuesday Apr 30, 2013 at 13:45 GMT
Originally opened as https://github.com/openfisca/openfisca/issues/175
there isn't enought ppe for those years. It's not due to rsa_act
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.