roi_calc
Calculate return on investment percentage by dividing total gain by total cost. Determine profitability of an investment with a simple formula.
Instructions
Calculate Return on Investment (ROI) percentage.
Parameters:
gain — Total gain from investment.
cost — Total cost of investment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gain | Yes | ||
| cost | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |