w3resource

NumPy Financial functions: ppmt() function

numpy.ppmt() function

The ppmt() function is used to compute the payment against loan principal.

Syntax:

numpy.ppmt(rate, per, nper, pv, fv=0.0, when='end')

Version: 1.15.0

Parameter:

Name Description Required /
Optional
rate Rate of interest (per period)
array_like
Required
per Amount paid against the loan changes.
The per is the period of interest.
array_like, int
Required
nper Number of compounding periods
array_like
Required
pv Present value
array_like
Required
fv Future value
array_like
Optional
when When payments are due ('begin' (1) or 'end' (0))
{{'begin', 1}, {'end', 0}}, {string, int}
Required

NumPy.ppmt() method Example:

What is the monthly payment needed to pay off a $100,000 loan in 12 years at an annual interest rate of 8.5%?

>>> import numpy as np
>>> np.ppmt(0.085/12, 1, 12*12, 100000)

Output:

-401.72223098117627

Monthly payment $401.722 is needed.

Python - NumPy Code Editor:

Previous: pmt() function
Next: ipmt() function



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/numpy/financial-functions/ppmt.php