Code Monkey home page Code Monkey logo

value-of-time's Introduction

Value of Time

We calculate multiple scenarios ignoring the Risk while just considering the Discrete Value of Time for the following scenarios.

1. Calculating the Net Present Value with Discrete Compounding considering a Fixed Spot Rate

Execute using:

           g++ -pedantic-errors -std=c++11 pv_riskless_fcf_ft.cpp -o npv

           ./npv

... Sample Output ...

vot_1

2. Calculating Perpetuity (Promise of a payment of a Fixed Amount X each period for the indefinite future with a Fixed Spot Rate)

Execute using:

           g++ -pedantic-errors -std=c++11 perpetuity.cpp -o perpetuity

           ./perpetuity 10000 7.5

... Sample Output ...

vot_2

...

vot_3

3. Calculating Growing Perpetuity (An infinite sequence of cashflows, where the payment the first year is Fixed Amount X and each consequent payment grows by a constant rate)

Execute using:

           g++ -pedantic-errors -std=c++11 growingperpetuity.cpp -o growingperpetuity

           ./growingperpetuity 10000 5.5 2.5

... Sample Output ...

vot_4

...

vot_5

4. Calculating Annuity (A sequence of Cash Flows for a given number of years, say T periods into the future, while considering an Annuity paying a Fixed Amount X each period with a Spot Fixed Rate r)

Execute using:

           g++ -pedantic-errors -std=c++11 annuity.cpp -o annuity

           ./annuity 10000 3.5 10

... Sample Output ...

vot_6

5. Calculating Growing Annuity (A sequence of Cash Flows for a given number of years, say T periods into the future, where each payment grows by a given factor each year)

Execute using:

           g++ -pedantic-errors -std=c++11 growingannuity.cpp -o growingannuity

           ./growingannuity 10000 6 3.5 10

... Sample Output ...

vot_7

6. Estimating the Internal Rate of Return for a series of inputted Cash Flows

Execute using:

           g++ -pedantic-errors -std=c++11 internalrateofreturn.cpp -o iror

           ./iror -110 10 100

... Sample Output ...

vot_9

...

vot_10

...

vot_11

...

vot_12

~~ Sankalok Sen ~~

value-of-time's People

Contributors

sankalok avatar

Watchers

 avatar

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.