-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Description: The last thing we have to add to the frontend for the expanded grant view is the cost benefit analysis. This feature gives an approximation to the user of the net benefit of the grant, taking into consideration the total money gained, and the total amount of time spent on the application and any additional reports. It takes in a few inputs from the user, namely a staff member's hourly rate & time per report, plugs it into the formula:
NetBenefit=(GrantAmount)-((EstimatedCompletionTime+ReportCount*TimePerReport)*StaffHourlyRate
The variables GrantAmount, EstimatedCompletionTime, and ReportCount should be contained within the grant itself and does not require user input.
Design (Connected to #131):
Success Criteria:
- Design is implemented fully, with inputs from the user saving when they click outside the input box.
- Uses the grant values in the frontend to perform the calculations; no calls to the backend should be needed.
- Displays the correct number for the net benefit.
- Feature can be re-ran with different input values from the user, and displays the correct output each time.
EDITS: remove cost-benefit field thats next to amount, add "net benefit" text next to final amount displayed, change final dollar amount to black, add "(in hours)" next to time per report