Returns the interest paid during a specific period of an investment.
Name | Type | Description |
arg1 | number | Interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR. |
arg2 | number | Period for which you want to find the interest. |
arg3 | number | Number of payment periods in an investment. |
arg4 | number | Lump sum amount that a series of future payments is right now. |
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oFunction = Api.GetWorksheetFunction(); oWorksheet.GetRange("A1").SetValue(oFunction.ISPMT(0.1/12, 1, 2*12, 2000)); builder.SaveFile("xlsx", "ISPMT.xlsx"); builder.CloseFile();