Git Product home page Git Product logo

Comments (4)

bodiyang avatar bodiyang commented on September 22, 2024

To create an offset function (probably in calculator.py; the logic is to change the wage variable 'e00200' in input variable when there is reform including the employer side payroll tax parameter) I may need to add more tool functions:

  1. add policy parameters of employer side and employee side payroll tax rate
  2. add a function, as an update of the records, to write the changed value to input record class (probably in records.py)

@jdebacker any suggestions for this process?

from tax-calculator.

jdebacker avatar jdebacker commented on September 22, 2024

@bodiyang I would do this in two PRs.

Do (1) in the first PR, just creating new parameters and making sure that all tests still pass (results should be the same, you are just splitting the current "combined" variables.

Then, between (1) and (2), you may want to do an intermediate step, which is creating/modifying functions for the _payroll and _combined variables to allow one to get values for the employer and employee sides separately. I'm not 100% sure this is the way to go, but depending how you implement (2), it may be helpful.

from tax-calculator.

jdebacker avatar jdebacker commented on September 22, 2024

Another thought - after step (1), you can consider implementing (2) via the Behavioral Responses package. That package may already have functions that you can leverage for updating records, etc.

from tax-calculator.

martinholmer avatar martinholmer commented on September 22, 2024

Issue #2665 has been resolved by the merge of pull request #2753.

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.