-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CUMPRINC and CUMIPMT functions #38
Comments
I would also appreciate CUMPRINC and CUMIPMT. My code: And likewise with CUMIPMT. |
CUMPRINC shows also in SAS, with a bit different masking: def SAS_CUMPRINC(rate, nper, pv, start_period, end_period, fv=0, when='end'): """
|
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 theper
argument and then sum over rows.I'd be happy to contribute code and submit a pull request.
The text was updated successfully, but these errors were encountered: