Git Product home page Git Product logo

Comments (6)

iliakur avatar iliakur commented on May 27, 2024

@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.

talumbau avatar talumbau commented on May 27, 2024

Still looking for input from @SameerSarkar on this issue.

from tax-calculator.

talumbau avatar talumbau commented on May 27, 2024

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.

iliakur avatar iliakur commented on May 27, 2024

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.

feenberg avatar feenberg commented on May 27, 2024

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.

MattHJensen avatar MattHJensen commented on May 27, 2024

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.