Calculates the number of periods required to pay off a loan using numpy financial functions.
Registered as a process-text handler.
| Parameter | Description |
|---|---|
Param1 |
Annual interest rate as a percentage (e.g. 12 for 12%) |
Param2 |
Payment amount per period |
Param3 |
Present value (loan amount) |
Divides Param1 by 100 to get the decimal rate, then divides by 12 to get the monthly rate before calling numpy.nper(monthly_rate, payment, amount). The result is rounded to 2 decimal places and returned as a positive value.
Returns the number of periods as a string.
ObjProcessText(ObjData.ObjData) — inherits database and config access from ObjData.
cythonize -3 -a -i ObjTextNPER.py
Updated : 2025-10-02