{"data":{"kind":"file","path":"README.md","version_id":"dio0mlhuos0ylhbgb2a7nbkp","entry":{"name":"README.md","path":"README.md","is_directory":false,"size":1092,"modified_at":"2026-02-28T10:55:27.467000","content_hash":"b3724c93175eb799e9f9e118f047817cb318d42454faee39e8ada4b3d3926fde"},"entries":[],"content":"# IRR Calculator Environment\n\nSingle-turn **RL environment** for **Internal Rate of Return (IRR)** analysis. The model must compute the IRR (discount rate at which NPV = 0), decide INVEST or PASS vs a hurdle rate, and output valid JSON. Training and evaluation are run by Prime Intellect (`prime eval run`, `prime rl run`).\n\n## Task\n\n- **Input:** Project name, cash flows (list from year 0 to n), hurdle rate (%).\n- **Output:** `irr_pct`, `decision` (INVEST/PASS), `reasoning`.\n- **Reward:** IRR within tolerance and correct decision (binary), or continuous 0–1.\n\n## Install and run\n\n```bash\nprime env install irr-calculator -p ./environments\nprime eval run irr-calculator -m Qwen/Qwen3-4B-Instruct-2507 -n 20 -r 1\n```\n\n## Relation to NPV and ROI\n\n- **NPV:** Given discount rate and cash flows → compute NPV → ACCEPT/REJECT.\n- **ROI:** Given investment, profit, years → compute ROI and annualized ROI → INVEST/PASS.\n- **IRR:** Given cash flows only → find rate where NPV = 0 → compare to hurdle → INVEST/PASS.\n\nPart of the same finance env family (NVP_ENV, ROI_ENV, IRR_ENV).\n","encoding":"utf-8","truncated":false,"total_bytes":1092},"status":null}