全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1126 0
2012-06-23
There are a couple of functions(NPV, NETPV) in SAS .


NETPV(r,freq,c0,c1,...,cn)

NPV(r,freq,c0,c1,...,cn)

It is convenient if the cashflows are uneven for each period.

When the cashflows are the same for each period. You can use the mort function.
Here is an example. Suppose that monthly cashflow is 7000, annual intest rate is 7% and period=30 years.

The present value=1052152.9756 ~1 million.   Or in other words your monthly payment is 7000 when you borrow 1 million yuan from a bank with a contract of 7% and 30 years to buy a house. A morgage payment is usually below 1/3 of your income. So you need a yearly salary 7000*3*12 ~250000 Yuan; otherwise renting a house is a better choice.


30
31   data _null_;
32      npv=1000000;
33      rate=0.07; *annual intest rate;
34      term=12*30;*30 years;
35      npv=mort(.,7000,rate/12,term);
36      put npv=;
37   run;

npv=1052152.9756
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds




二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群