The interest rate per period.
The payment to be made each period.
The present value of the series of future payments or receipts.
The future value of the series of payments or receipts. If omitted, the default value is 0.
A value indicating when payments are due.
DueDate.EndOfPeriod (0) indicates that payments
are due at the end of the payment period, and
indicates that payments are due at the beginning of the period. If
omitted, the default value is 0.
A Double indicating the number of payments
Determines the number of payment periods for an annuity based on fixed periodic payments and a fixed interest rate
rate is a percentage expressed as a
decimal. For example, a monthly interest rate of 1% is expressed as
cash paid out is represented by negative numbers; cash received is
represented by positive numbers.
Typically, the amount of time required to repay credit-card debt is never explicitly stated. The following program uses the NPer function to determine how much time is required to repay credit-card debt:
Private Sub HowLongToPay( ) Try Dim dblRate, dblPV, dblPmt As Double Dim lngNPer As Long dblPV = InputBox("Enter the Credit Card balance: ") dblPmt = InputBox("Enter ...