capitalpaym

Calculates the capital 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

Capital payment

Examples

capitalpaym