Fix RD Calculator functionality and UI improvements #3339
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π οΈ Fixes Issue
Fixes: #3338
π¨βπ» Description
What does this PR do?
This pull request addresses the issue with the RD Calculator where the Calculate and Clear buttons are non-functional. After entering valid input for Monthly Deposit, Rate of Interest, and Time Period, the buttons fail to trigger their intended actions:
This fix ensures that both buttons function as expected, providing the user with the ability to:
Additionally, a legend has been added to the RD Calculator for better accessibility and context, helping users understand the purpose of each input section.
π Type of Change
π· Screenshots/GIFs (if any)
Before the Fix:
The screenshot shows the RD Calculator interface with the Calculate and Clear buttons present. Despite entering valid values for Monthly Deposit, Rate of Interest, and Time Period, clicking the Calculate button does not trigger any calculation or display results. Similarly, clicking the Clear button does not reset the input fields or clear the displayed results. The buttons are visually present but do not function as expected, resulting in a non-interactive user experience.
After the Fix:
The screenshot shows the RD Calculator interface after the fix has been implemented. Now, clicking the Calculate button correctly triggers the calculation of the total interest and maturity amount, displaying the results as expected. The Clear button also functions as intended, resetting the input fields and clearing any displayed results, providing a fully interactive and responsive user experience.
β Checklist
Mandatory Tasks
π€ GSSoC Participation