interestpaym

Calculates the interest part in an annual payment for a loan based on the constant interest rate. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Number of payments
  2. Payment for which we need to calculate interest
  3. Interest rate per period of return
  4. Value of loan

Output

Interest payment

Examples

interestpaym