Comments (6)
@SameerSarkar is the best person to ask, since that line is missing from previous translations.
That function in general could do with some refactoring for an increase in speed and legibility.
from tax-calculator.
Still looking for input from @SameerSarkar on this issue.
from tax-calculator.
I'm hesitant to remove the code that uses _a1
though_a5
in the Taxer function, but it looks like that might be the right answer.
from tax-calculator.
I checked the SAS code and it appears _a1
-_a5
are in fact used there. Based on a cursory read (during lunch break), I think they're just an optional logical branch if one's income satisfies certain conditions.
Considering this and that @SameerSarkar appears to have gone AWOL, my call would be to a) keep these lines b) translate them into vanilla python so that it's easier to figure out where and how they fit in.
I can totally help with the latter, so let me know!
from tax-calculator.
There is a lot of code in taxer to round the result in the same way that the the tax tables in the 1040 book are rounded. We don't need that in the long run, but it is useful to keep it while we are comparing with the withc data. I am virtually certain that taxer is doing the right thing - it has been compared to millions of actual returns at SOI, but the syntax may be limited by SAS, and it might look better as a loop rather than a series of conditional statements.
dan
from tax-calculator.
Closing.
from tax-calculator.
Related Issues (20)
- Adopt an OSI-approved open source license HOT 2
- Elderly and disabled credit values for widow(er)s HOT 4
- CTC multiple non-refundability limitations
- Allow negative values for the bonus credits for children under age 6
- How to interact AGI with SALT cap HOT 2
- Missing 2020-2022 policy parameter values HOT 1
- Incorrect 2020 UI exemption logic HOT 1
- Incorrect 2020 CG_brk2 policy parameter value HOT 1
- Incorrect 2021 RRC_pe policy parameter value HOT 1
- Incorrect 2020-21 EITC_ps and EITC_ps_MarriedJ policy parameter values HOT 1
- Ensure recipes run on Google Colab
- Parameterize IRS rounding rules for indexed parameter values HOT 4
- Incorrect 2021 *_brk5 and *_brk6 policy parameter values HOT 2
- Exempt the first $400 from self-employment tax HOT 1
- Incorrect 2021 Child and Dependent Tax Credit calculations
- Incorrect 2020 EITC calculation HOT 1
- Incorrect EITC amount for two kids in 2022 HOT 1
- Incorrect status-quo EITC calculations for 2022 HOT 2
- Introduce tax offset (employer side payroll) into Tax-Calc HOT 3
- Release Tax-Calculator 3.3.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tax-calculator.