Git Product home page Git Product logo

Comments (3)

MattHJensen avatar MattHJensen commented on May 28, 2024

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.

feenberg avatar feenberg commented on May 28, 2024

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.

MattHJensen avatar MattHJensen commented on May 28, 2024

dealt with in #129, closing

from tax-calculator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.