BookmarkSubscribeRSS Feed
Neville
Calcite | Level 5

I'm on SAS EG version 5.1

 

I'm attempting to use SAS Finance 'Rate' function to calculate the APR for a lease.

 

In excel the following formula works:

 

=RATE(TERM,,SUM_PAYMENTS - FINANCED AMOUNT,LEASE_RESIDUAL,0)*12;

 

For a lease with the following values the APR is 2.89%

FINANCED_AMOUNT = 31050.45;

LEASE_RESIDUAL = 22452;

TERM = 24;

SUM_PAYMENTS = 9856.83

 

When I attempt the same formula using the SAS RATE function in a data step, I get a '.' result.

 

Looking for a way to fix this formula or a different function that would get me to the same APR excel does.

 

Thank you!

1 REPLY 1
ballardw
Super User

Please show the code you were attempting. It may help to provide what kind of "RATE" you are looking for since Finance stuff has a plethora of rates.

If you used the Finance('RATE', ....) function that calculates the interest rate of an annuity. Is that what you wanted? It seems unlikely given the name of your variables Financed_Amount and Lease_residual

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1706 views
  • 0 likes
  • 2 in conversation