@sbxkoenk wrote: Hello, The FINANCE function has a limitation which checks for (strictly) positive values for the "rate". If a negative (or zero) value is passed, it will return the message in the SAS log that Argument 2 is invalid. The PPMT functions do not have this limitation. Please use the PPMT function instead of the FINANCE function with the PPMT as the first argument. Here is the link to the documentation on the PPMT function: https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.5&docsetId=lefunctionsref&docsetTarget=p1m2s8u7i0jfo6n1c0siw2vinb9t.htm&locale=en Good luck, Koen Hi, I have the same problem with Finance function. I did resolve a problem with negative values for Rate by adding *(1+Rate)**Nper; after the function, but still have a problem for Zero value for rate. I'm not sure that PPMT function can be a solution in my case, cause I need make calculation for negative values in Pmt as well, while PPMT function requires this parameter to be positive only. Can you help in my case? Here an example for numbers I made calculation on them. I except to get r = 94 with given numbers: Data AAA;
/* Rate = -0.0138067061143984;*/
Rate = 0;
/* Rate = 1;*/
Nper = 1;
Pmt = -94;
Pv = 0;
Type = 1;
r = Finance('Pv', Rate, Nper, Pmt, Pv, Type)*(1+Rate)**Nper;
Run;
... View more