codeforboston / codeforboston/windfall-elimination

AIME Calculations fails on sub-35 earnings records

Open
#108 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
23
Forks
44
PR merge metrics
No merged PRs in 30d

Description

The getAIMEFromEarnings calculation expects that the user provides an earnings record with, at minimum, 35 years. If the user has <35 records, the output will be NaN on the final value page.

Currently setting up a testing framework so we can refactor the code for this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the getAIMEFromEarnings calculation and the final value page where its result is displayed. First reproduce the NaN result with an earnings record containing fewer than 35 years, then use the testing framework currently being set up to cover that case. Done means sub-35 records produce a valid final value rather than NaN.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.