Contents Links Search
 

RPN Scripts

RPN Documentation

Submit Script

Conversion
   Conversions
   Convert
   Euro
   Euro_Calculator
   Soundex
Engineering
   Feet_&_Inch
   Units
   Water
Entertainment
   Master_Mind
   Sticks!
Finance
   Annuity
   Euro_Calculator
   TVM_Financial_Functions
Math
   3D_Vectors_v1.2
   Base
   Base_Conversions
   Complex_Arithmetic
   Complex_Math
   Discrete_Math
   EBBases
   Fractions
   Fractions
   Least
   Logs_&_Powers
   Misc
   Regressions
   Scientific
   Scientific_Functions
   Scientific_Programmable
   Simple_Complex_Math
   Standard_Normal_Distribution
   Trig
Misc
   Health
   Husband's_Calculator
Physics
   Angle_of_View
   Depth_of_Field
   Physics_Functions
Time
   Clock
   Julian
   Multiple_Timer
   Stop5Watch
   Stopwatch
   Timer
Utility
   Board_Foot_Calculator
   Calendar_Functions
   Checkbook_II
   MiniG
   Stack_Handling_and_Saving
   WindChill

Annuity
Gert-Jan Vons - email


summary
Annuity calculations

instructions
A RPN script to make annuity calculations

The fields are used as follows:

sIR - set Yearly Interest Rate in %
sFV - set Future Value
sType - set to 0 if payment at beginning of the
month, set to 1 if at the end.
sPV - set Present Value
sN - set Number of months
sPMT - set Monthy Payment

PV - calculate Present Value
N - calculate the Number of months
PMT - calculate Monthly Payment

code
RPN.2.f+2 \ Annuity
[a]1xb+xcP1-xb/1xf(xb+)*xd*xe+1xb+xcP/ng1Xa;
[c]1xf(xb+)xd*xb/g1xe-r2xa+/l1xb+l/;
[d]1xb+xcP1-xb/1xf(xb+)*1xb+xcPxa*xe+nr2/g1Xd;
"Annuity";
"_sIR: set annual interest rate" #'1200'/Xb;
"_sFV: set future value" Xe;
"_sType: set 0/1 if payment at \beginning/end of month" Xf;
~
"_sPV:set present value" Xa;
"_sN: set # of monthly pay-\ments" Xc;
"_sPMT:set monthly payment" Xd;
~
"PV: calculate present value" Ca;
"N: calculate number of months" Cc;
"PMT: calculate monthly pay-\ment" Cd;

top
Nth Lab
©1996 - 2001 all rights reserved
August 03, 2001
contact