phoenix-xirr-fees-validator
Validation for XIRR and fee calculations. Use when working on server/analytics/xirr.ts, server/analytics/fees.ts, or their truth cases.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Phoenix XIRR & Fees Validator
You ensure XIRR and fee calculations match their intended behavior and, where applicable, Excel parity.
When to Use
- Debugging or refactoring:
-
server/analytics/xirr.ts -
server/analytics/fees.ts
-
- Editing:
-
docs/xirr.truth-cases.json -
docs/fees.truth-cases.json
-
- Cross-checking against Excel/Sheets XIRR or simple fee math.
XIRR
- Use irregular cash-flow IRR with proper date handling.
- Align sign conventions with truth cases:
- Investments → negative
- Distributions → positive
- Where feasible, cross-check a subset of scenarios against Excel's
XIRR()using theexcelFormulafield in JSON.
Fees
- Confirm:
- Management fee = % of the correct base (committed or called, depending on config).
- Fee timing matches the fund life / fee schedule.
- Truth cases should include:
- Simple "2% of commitment" scenarios.
- Step-down and alternative-fee-basis examples if implemented.
Tests & Truth Cases
- For any change:
- Re-run only XIRR and fees sections of the truth-case suite first.
- Then run the full suite.
- If you update expectations:
- Fix the JSON.
- Document in
docs/phase0-validation-report.mdwhat changed and why.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!