Comments (3)
It looks like this line is governing the SAS code:
if FLPDYR ge 2011 then c10300 = c09200 - e10000 - e09710 - e09720
Does that get you the right result? If so, the rest of the lines arenβt needed.
@feenberg, could you suggest a way that I could I verify that this is correct for 2013 (and onwards) from first principles?
Matt
On Jan 22, 2015, at 1:27 PM, Jake Lyons <[email protected]mailto:[email protected]> wrote:
In the SOIT() function it looks like there may be a bug, but I am not sure what the correct fix should be.
Should the linehttps://github.com/OpenSourcePolicyCenter/Tax-Calculator/blob/jit/taxcalc/calculate.py#L2410
c10300 = c10300 - c10300 - c10950 - e11451 - e11452
be
c10300 = c10300 - c10950 - e11451 - e11452 ?
and also the linehttps://github.com/OpenSourcePolicyCenter/Tax-Calculator/blob/jit/taxcalc/calculate.py#L2411
c10300 = c09200 - e09710 - e09720 - e10000 - e11601 - e11602
be
c10300 = c10300 - c09200 - e09710 - e09720 - e10000 - e11601 - e11602?
OR
if the second linehttps://github.com/OpenSourcePolicyCenter/Tax-Calculator/blob/jit/taxcalc/calculate.py#L2411 referenced above is correct, than the above 7 lineshttps://github.com/OpenSourcePolicyCenter/Tax-Calculator/blob/jit/taxcalc/calculate.py#L2403-2410 of code are not needed, as they do not impact the accuracy of that variable.
@feenberghttps://github.com/feenberg and @MattHJensenhttps://github.com/MattHJensen, is this an error? And if so, which would be the correct fix?
Additionally, if the first suggestion is correct I think it would be easier to read and less error prone if the bulk of that function was consolidated into a single assignment of the c10300 variable instead of re-assignment, such as
c10300 = c09200 - e10000 - e59680 - ... - ... - e11601 - e11602 all at once.
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/95.
from tax-calculator.
At the SOI there is great concern over how much of each credit is applied
against income tax, other tax or refunded. I don't think we care at all.
This means that the last paragraphs of the taxcalc.sas code can be
replaced with:
_refund = c59660 + c11070 + c10960;
_ospctax = c09200-_refund
c10300 = max(0,_ospctax)
c09200 is just tax after non-refundable credits but the relevant number
for all economic issues is _ospctax. We may need c10300 to compare to CBO
forecasts. In my uploads, _ospctax will be _nbertax.
Dan
On Thu, 22 Jan 2015, Jake Lyons wrote:
In the SOIT() function it looks like there may be a bug, but I am not sure
what the correct fix should be.Should the line
c10300 = c10300 - c10300 - c10950 - e11451 - e11452
be
c10300 = c10300 - c10950 - e11451 - e11452 ?and also the line
c10300 = c09200 - e09710 - e09720 - e10000 - e11601 - e11602
be
c10300 = c10300 - c09200 - e09710 - e09720 - e10000 - e11601 - e11602?OR
if the second line referenced above is correct, than the above 7 lines of
code are not needed, as they do not impact the accuracy of that variable.@feenberg and @MattHJensen, is this an error? And if so, which would be the
correct fix?Additionally, if the first suggestion is correct I think it would be easier
to read and less error prone if the bulk of that function was consolidated
into a single assignment of the c10300 variable instead of re-assignment,
such as
c10300 = c09200 - e10000 - e59680 - ... - ... - e11601 - e11602 all at once.β
Reply to this email directly or view it on
GitHub.[AHvQVS0abgxasH3Z6-VqFZTOfZJO28w6ks5nkTiigaJpZM4DV8Wc.gif]
from tax-calculator.
dealt with in #129, 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.