How do I implement / compute this function in objective-c?
I am assuming that it is calculating the basic compound percentage formula. You can read more about complex interests all over the internet, specifically http://en.wikipedia.org/wiki/Compound_interest#Compound
The formula they give is not the same form as above, but it is the same.
a source to share
What the MS Excel percentage formula is -
Link here and here A short video on how it is used
As for the actual implementation of it, the wikipedia link is the best guide I've found.
a source to share
You can watch get_cumipmt(..)
or AnalysisAddIn::getCumipmt(..)
@ koders.com
Note that they are under the LGPL and GPL if you plan on copying it, but they can be helpful when creating your own implementation.
a source to share