Funció IPmt [VBA]
Calcula l'amortització periòdica d'una inversió amb pagaments regulars i un tipus d'interès constant.
IPmt(Rate as Double, Per as Double, NPer as Double, PV as Double, [FV as Variant], [Due as Variant])
Double
Tipus és el tipus d'interès periòdic.
Període és el període per al qual es calcula l'interès compost. Període = NPER si es calcula l'interès compost per a l'últim període.
NPer és el nombre total de períodes durant els quals es paga l'anualitat.
PV is the present cash value in sequence of payments.
FV (optional) is the desired value (future value) at the end of the periods.
Due (optional) is the due date for the periodic payments.
0 - el pagament es fa al final del període;
1 - el pagament es fa al començament del període.
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