IPmt Function [VBA]

Calculates the periodic amortizement for an investment with regular payments and a constant interest rate.

warning

This constant, function or object is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.


Syntax:


IPmt(Rate as Double, Per as Double, NPer as Double, PV as Double, [FV as Variant], [Due as Variant])

Return value:

Double

Parameters:

អត្រា ជា​អត្រា​ការ​ប្រាក់​តាម​កាល​កំណត់ ។

Per is the period, for which the compound interest is calculated. Period=NPER if compound interest for the last period is calculated.

NPer គឺ​ជា​ចំនួន​រយៈពេល​សរុប កំឡុង​ដែល​​ប្រាក់​ប្រចាំ​ថ្ងៃ​ណាមួយ​ត្រូវ​ចំណាយ ។

PV ជា​តម្លៃ​សាច់​ប្រាក់​បច្ចុប្បន្ន​ក្នុង​លំដាប់​ការ​បង់​ប្រាក់ ។

FV (ស្រេច​ចិត្ត) ជា​តម្លៃ​ដែល​ចង់​បាន (តម្លៃ​បច្ចុប្បន្ន) នៅ​បំណាច់​អំឡុងពេល ។

Due (optional) is the due date for the periodic payments.

0 - the payment is due at the end of the period;

1 - the payment is due at the beginning of the period.

Error codes:

5 ការ​ហៅ​បែបបទ​មិន​ត្រឹមត្រូវ

Example:


Sub ExampleIPmt
 Dim myIPmt As Double
 myIPmt = IPmt(0.05,5,7,15000)
 Print myIPmt ' returns -352.97 currency units. The compound interest during the fifth period (year) is 352.97 currency units.
End Sub