-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Health Savings accounts (Form 8889) #678
Conversation
Form 8853 is for reporting Archer MSA accounts and are used to calculate results in form 8889.
This is awesome. Briefly reviewing the requirements for W-2 box 12, it looks like there are a bunch of possible codes, and it is possible to have more than one code for that box. |
Yes box 12 can have multiple lines each with a different code and amount. some are just informational but others can be used in different schedules. In some W2 they are actually labeled as 12a, 12b, 12c, 12d but I don't think that is significant, it's just to show that there are multiple items. |
Rewrites some of the W2 data model to handle box 12 as a dictionary instead of an array. A single W2 should only have one value for each Box 12 code
I fixed up some compile errors, and implemented UI for Box 12. See here: ctSkennerton#1. Merging this PR on your fork will incorporate those commits directly here. |
F8889 add react box 12
# Conflicts: # src/irsForms/F1040.ts # src/irsForms/Schedule2.ts # src/tests/components/income/W2JobInfo.test.tsx
Codecov Report
@@ Coverage Diff @@
## master #678 +/- ##
==========================================
+ Coverage 70.59% 70.64% +0.05%
==========================================
Files 195 201 +6
Lines 6165 6555 +390
Branches 1004 1103 +99
==========================================
+ Hits 4352 4631 +279
- Misses 1799 1910 +111
Partials 14 14
Continue to review full report at Codecov.
|
Fixed up merge and tests issues again. I'll work on other issues for a bit, but feel free to call me back if you need anything. |
- Add menu items for HSA - Add in HSA input form - Add in Date Picker input component using @material-ui/pickers so that a user can select their coverage start and end dates - Add in Redux state actions to add, edit, and remove HSA form entries
@zakpatterson hope I can get your help again... I'm running into an error when trying to implement the UI for adding HSAs. I've tried to implement a frontend form with a date picker (still a work in progress) but when I go to save a new HSA entry I get the following error:
Googling hasn't given me any insights into what that might be. Have you experienced this error before and know what the cause might be? |
Fix negative value
F8889 review - fix negative values
Due to adding HSA distributions, we can no longer assume that total tax is less than taxable income. But we can still assume that the tax on taxable income (L16 tax on L15 income) is less than taxable income. And we can also assume that total tax must be less than AGI.
# Conflicts: # src/components/income/W2JobInfo.tsx
Equal condition needs to match tolerance of form rounding to nearest dollar
Many schedules can be duplicated
For total income >= 0, AGI <= total income Total Tax <= total income Total income can be negative, that's the only case where tax is greater than total income. Total tax can be greater than AGI. Adjustments to income can be subtracted from taxable income but at the same time cause additional tax.
I had total tax must be less than AGI. This is not true, it is possible to have subtractions to total income which are still taxable in other ways. As long as total income is positive, we only know that |
I think this is ready with respect to calculations and tests. @thegrims when you can please review for UI and merge thanks! |
@thegrims sounds good, done. |
// return ( | ||
// <form tabIndex={-1} onSubmit={onAdvance}> | ||
// <h2>Health Savings Accounts (HSA)</h2> | ||
// {/* <p> | ||
// did you already make payments towards your {CURRENT_YEAR} taxes this | ||
// year or last year? | ||
// </p> */} | ||
// <FormProvider {...methods}>{form}</FormProvider> | ||
// {navButtons} | ||
// </form> | ||
// ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commented block of code should be removed if it isn't being used
Looks good, only other comment is on removing the commented line of code quoted above. Thanks for your contribution! |
This is the beginning of my work to implement health savings accounts. Feedback much appreciated. Fixes #205.
Tasks:
What kind of change does this PR introduce?