Skip to content
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

FFT-223 Attrition displayed as a percentage #641

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

CaitBarnard
Copy link
Contributor

@CaitBarnard CaitBarnard commented Mar 10, 2025

Display attrition as a percentage but save as a decimal
Display pay uplift as a percentage

Examples

Attrition:
0% = 1.0
1% = 0.99
2.5% = 0.975

Pay uplift:
0% = 1.0
1% - 1.01
2.5% = 1.025

To do:
Suffix with wrapper causes input box to be hidden when page is at a certain size
Scrollable div could be refactored to be in a tab
Error messages when value is not 0 to 100 (0.0 to 1.0 in backend)

@CaitBarnard CaitBarnard requested a review from a team as a code owner March 10, 2025 13:22
// Converts a value greater than 1.0 to percentage: 1.2 = 20%
// Rounded to prevent decimal precision issues
return Math.round((value - 1.0) * 100 * 1e10) / 1e10;
};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably a better way to have these two methods. One is for attrition, the other is pay uplift

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant