First, Thanks! to all who helped.

The biggest issues are NPV and IRR. NPV is a bit more complex than the
PV. IRR is an iterative solution that uses NPV to get result.

I have the equations, I just did not want to reinvent the wheel if
there was already a library out there. I have not found one yet, so I
will be coding them myself. Just a minor pain when you are short on
hours in the day.

Regards,

Pete


--- In flexcoders@yahoogroups.com, "aphexyuri" <yuriv...@...> wrote:
>
> i used the following in a previous project, maybe it might help you:
> 
> (for calculating payments)
> 
> public function calculatePMT(PV:Number, IR:Number,
YEARS:Number):Number {
> 
> var newIR:Number = IR/12;
> var newNP:Number = YEARS*12;
> 
> return Math.round((PV*(newIR/100)) / (1-Math.pow(1+(newIR/100),
-newNP)));
> }
> 
> 
> (for calculating present value)
> 
> public function calculateBond(PMT:Number, IR:Number,
> YEARS:Number):Number {
> 
> var newIRb:Number = (IR/100)/12;
> var newNPb:Number = YEARS*12;
> 
> var v:Number = Math.pow(1+newIRb, -newNPb);
> var pv:Number = PMT*(1-v)/newIRb;
> 
> return Math.round(pv);
> }
> 
> --- In flexcoders@yahoogroups.com, "valdhor" <valdhorlists@> wrote:
> >
> > Do a google search for your requirements. For example, searches on NPV
> > and IRR yielded the following:
> > 
> > http://www.ehow.com/how_2187130_calculate-net-present-value-npv.html
> > http://www.s-anand.net/Calculating_IRR.html
> > 
> > You will then need to convert these algorithms to Actionscript (I
> > could not find any Actionscript examples).
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Pete Appleby" <boneoh@> wrote:
> > >
> > > Hi, everybody!
> > > 
> > > I need to find   Flex 3 functions to calculate NPV, IRR, and
NPER just
> > > like in Excel. Are these out there anywhere? I don't want to
reinvent
> > > the wheel.
> > > 
> > > Thanks!
> > > 
> > > Pete
> > >
> >
>


Reply via email to