Add CUMPRINC and CUMIPMT functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- numpy, python
- Domain
- fintech-quant
Research direction
Start by locating the existing npf.ppmt and npf.ipmt entry points and their tests. Review how payment-period arrays are handled, then add CUMPRINC and CUMIPMT with coverage for cumulative principal and interest over multiple periods; done means both functions match the OpenDocument v1.2 behavior.
Written by the indexing model from the issue text.
Description
The Open Document Format for Office Applications (OpenDocument)v1.2 on which numpy-financial is based specifies two functions which are currently not implemented: CUMPRINC and CUMIPMT. These functions calculate the cumulative principal and interest paid down in an installment loan after a number of payment periods.
To implement these, one could simply call npf.ppmt/npf.ipmt with a 1-D array for the per argument and then sum over rows.
I'd be happy to contribute code and submit a pull request.
- Dominant language
- Python
- Stars
- 409
- Forks
- 98
- Avg merge
- 10h 43m
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from numpy/numpy-financial
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
numpy/numpy-financial#131 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
numpy/numpy-financial#130 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
numpy/numpy-financial#126 · 3 comments ·
-
bench bug build sustain-2026
numpy/numpy-financial#123 · 1 assignee ·
-
Cython maintenance
Difficulty 5/5 Over a week Newbie friendliness 25/100
numpy/numpy-financial#119 ·
All issues in numpy/numpy-financial
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100