6. Functions : Finance Library Functions : PC Function : Example—PC function:
 
Share this page                  
Example—PC function:
/*  Calculate difference between compounding daily and
**  monthly a principle amount of $100 at an interest
**  rate of 10% for one year.
*/
/* compounded monthly */
amt1 = pc(pv = 100, I = .1/12, nper = 12);
/* compounded daily */
amt2 = pc(pv = 100, I = .1/365, nper = 365);