Skip to content

DEV - Cost Benefit Analysis in Frontend #201

@lyannne

Description

@lyannne

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):

Image

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions