Hi, I am trying to calculate the present value by using the FINANCE function in SAS. However, I found that when my rows having interest as 0%, the log threw me error for example saying: NOTE: Invalid argument to function FINANCE('pv',0,24,-100) at line 28 column 7. What should I do to solve it? Here is the code I used: data aa; input int_rate annual_payment; datalines; 0 1200 0 4000 0.008325 1000 0.008325 500 ; run; data bb; set aa; pv = finance('pv', int_rate, 24, - annual_payment / 12); run; Sample data - HAVE: # int_rate annual_payment 1 0 1200 2 0 4000 3 0.008325 1000 4 0.008325 500 WANT: # int_rate annual_payment pv 1 0 1200 2400 2 0 4000 8000 3 0.008325 1000 1806.0852117 4 0.008325 500 903.04260585
... View more