Coder Social home page Coder Social logo

Comments (2)

luajalla avatar luajalla commented on July 18, 2024

Excel uses a different root-finding algo, so it's not guaranteed that the results are the same for the functions like Rate (there're other differences too).

When the approximate rates are known, it's always better to specify guess parameter. The library default guess is 0.1, which is too far from the expected value in this case and the lib doesn't find the root (we could increase the number of iterations, but that would be slower). Here that might be 0.04 or 0.05 or even 0.06.
Note, that in general case you won't get the same results as in Excel anyway

Financial.Rate(260.0,-60.0, 13500.0, 1400.0, PaymentDue.BeginningOfPeriod, 0.04)

Alternatively, you can use any solver to find the rate from FV(r,...) - fv = 0

Probably, it makes sense to adjust the algo, but hard to say what the library defaults should be.

from excelfinancialfunctions.

jcoliz avatar jcoliz commented on July 18, 2024

Hi, I'm cleaning up old issues. From luajalla's comments, it seems that this issue is by design. And the behavior is covered in the docs. I don't expect any further change here, so closing.

from excelfinancialfunctions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.