#### Testimonials

 "I have been an investor for 2 years. Through this site I have managed to finance 4 projects. I am very pleased with my membership. " Dave M.

 BLOG >> July 2012

 How to analyze an investment opportunity [Decision Making] Posted on July 10, 2012 @ 07:00:00 AM by Paul Meagher Lately I've been researching formal methods that might be used to decide whether to invest in a project or not. Three commonly used metrics are: Payback Period Net Present Value (NPV) Internal Rate of Return (IRR) To compute these values, you need to specify a cashflow sequence where the first element in the cashflow sequence is a negative number denoting the investment amount. The next elements in the cashflow sequence are the net income amounts for year 1, year 2, up to year N. An example of a cashflow sequence would be: ```year 0 1 2 3 cashflow -10,000 6,000 6,000 6,000 ``` A cashflow sequence like this would be sufficient to compute the payback period for an investment, which is simply the number of years it would take to earn back your initial investment. In this case, the payback period would be 1.67 years which is one useful investment metric to know when evaluating an investment opportunity. The nice thing about payback period metric is that it is simple number to understand. One problem, however, with this metric is that it does not take into account the time value of money, or the idea that money in your pocket today is worth more than the same amount in your pocket a year from now (because money in your pocket today could be earning interest and be worth more a year from now). The Net Present Value calculation includes a discount rate factor that takes the time value of money into account. The Net Present Value calculation involves computing the present values of a cashflow sequence given a discount rate. If you have a discount rate of, say, 5%, then the \$6000 you estimate that you might earn a year from now, would be equivalent to a present value of \$5714.4 (plus a year earning interest at 5%). You compute the present value of each projected cashflow, sum them up, and subtract it from your initial investment. If this "net present value" is greater than 0 than you should consider proceeding with the investment. If the net is less than 0, don't invest. NPV gives you simple rule for making a an investment decision, and the size of the NPV allows you to more accurately gauge how good the investment is because it takes into account the time value of money via a discount rate that you specify. While technically the rate you enter into the NPV formula is a "discount rate", you can also construe the rate as the percent profit you would want to make in order for the project to be worth your while. As you increase the percent profit you would like to make, the NPV value returned will be smaller and smaller. You can keep increasing the profit percentage until you get an NPV of 0. The profit percentage that gets you an NPV of 0 is called the Internal Rate of Return (IRR) and is another useful number for deciding whether you should invest in a project or not. Obviously, the higher the IRR the better the investment. It is also a useful metric for comparing investment opportunities in an apples-to-apples manner. Enough theory. How to do we actually compute these investment metrics? Rather than trot out a bunch of formulas, I will instead trot out a bunch of PHP code that computes these investment metrics: This code is a port of some python code found here. To test drive these functions we can create a test script: The output of this script looks like this: ```Payback is 1.67 years NPV is \$ 6339.49 IRR is 36.31% ``` Each of these numbers gives us a different perspective on a potential investment and together provides a useful set of formal metrics for analyzing the worthiness of an investment opportunity. Permalink

Archive
 Select month ... November 2023 (1)June 2023 (1)May 2023 (1)April 2023 (1)March 2023 (6)February 2023 (1)November 2022 (2)October 2022 (2)August 2022 (2)May 2022 (2)April 2022 (4)March 2022 (1)February 2022 (1)January 2022 (2)December 2021 (1)November 2021 (2)October 2021 (1)July 2021 (1)June 2021 (1)May 2021 (3)April 2021 (3)March 2021 (4)February 2021 (1)January 2021 (1)December 2020 (2)November 2020 (1)August 2020 (1)June 2020 (4)May 2020 (1)April 2020 (2)March 2020 (2)February 2020 (1)January 2020 (2)December 2019 (1)November 2019 (2)October 2019 (2)September 2019 (1)July 2019 (1)June 2019 (2)May 2019 (3)April 2019 (5)March 2019 (4)February 2019 (3)January 2019 (3)December 2018 (4)November 2018 (2)September 2018 (2)August 2018 (1)July 2018 (1)June 2018 (1)May 2018 (5)April 2018 (4)March 2018 (2)February 2018 (4)January 2018 (4)December 2017 (2)November 2017 (6)October 2017 (6)September 2017 (6)August 2017 (2)July 2017 (2)June 2017 (5)May 2017 (7)April 2017 (6)March 2017 (8)February 2017 (7)January 2017 (9)December 2016 (7)November 2016 (7)October 2016 (5)September 2016 (5)August 2016 (4)July 2016 (6)June 2016 (5)May 2016 (10)April 2016 (12)March 2016 (10)February 2016 (11)January 2016 (12)December 2015 (6)November 2015 (8)October 2015 (12)September 2015 (10)August 2015 (14)July 2015 (9)June 2015 (9)May 2015 (10)April 2015 (9)March 2015 (8)February 2015 (8)January 2015 (5)December 2014 (11)November 2014 (10)October 2014 (10)September 2014 (8)August 2014 (7)July 2014 (5)June 2014 (7)May 2014 (6)April 2014 (3)March 2014 (8)February 2014 (6)January 2014 (5)December 2013 (5)November 2013 (3)October 2013 (4)September 2013 (11)August 2013 (4)July 2013 (8)June 2013 (10)May 2013 (14)April 2013 (12)March 2013 (11)February 2013 (19)January 2013 (20)December 2012 (5)November 2012 (1)October 2012 (3)September 2012 (1)August 2012 (1)July 2012 (1)June 2012 (2)

#### Archive

 November 2023 [1] June 2023 [1] May 2023 [1] April 2023 [1] March 2023 [6] February 2023 [1] November 2022 [2] October 2022 [2] August 2022 [2] May 2022 [2] April 2022 [4] March 2022 [1] February 2022 [1] January 2022 [2] December 2021 [1] November 2021 [2] October 2021 [1] July 2021 [1] June 2021 [1] May 2021 [3] April 2021 [3] March 2021 [4] February 2021 [1] January 2021 [1] December 2020 [2] November 2020 [1] August 2020 [1] June 2020 [4] May 2020 [1] April 2020 [2] March 2020 [2] February 2020 [1] January 2020 [2] December 2019 [1] November 2019 [2] October 2019 [2] September 2019 [1] July 2019 [1] June 2019 [2] May 2019 [3] April 2019 [5] March 2019 [4] February 2019 [3] January 2019 [3] December 2018 [4] November 2018 [2] September 2018 [2] August 2018 [1] July 2018 [1] June 2018 [1] May 2018 [5] April 2018 [4] March 2018 [2] February 2018 [4] January 2018 [4] December 2017 [2] November 2017 [6] October 2017 [6] September 2017 [6] August 2017 [2] July 2017 [2] June 2017 [5] May 2017 [7] April 2017 [6] March 2017 [8] February 2017 [7] January 2017 [9] December 2016 [7] November 2016 [7] October 2016 [5] September 2016 [5] August 2016 [4] July 2016 [6] June 2016 [5] May 2016 [10] April 2016 [12] March 2016 [10] February 2016 [11] January 2016 [12] December 2015 [6] November 2015 [8] October 2015 [12] September 2015 [10] August 2015 [14] July 2015 [9] June 2015 [9] May 2015 [10] April 2015 [9] March 2015 [8] February 2015 [8] January 2015 [5] December 2014 [11] November 2014 [10] October 2014 [10] September 2014 [8] August 2014 [7] July 2014 [5] June 2014 [7] May 2014 [6] April 2014 [3] March 2014 [8] February 2014 [6] January 2014 [5] December 2013 [5] November 2013 [3] October 2013 [4] September 2013 [11] August 2013 [4] July 2013 [8] June 2013 [10] May 2013 [14] April 2013 [12] March 2013 [11] February 2013 [19] January 2013 [20] December 2012 [5] November 2012 [1] October 2012 [3] September 2012 [1] August 2012 [1] July 2012 [1] June 2012 [2]

#### Categories

Agriculture [77]
Bayesian Inference [14]
Books [18]
Causal Inference [2]
Creativity [7]
Decision Making [17]
Decision Trees [8]
Definitions [1]
Design [38]
Eco-Green [4]
Economics [14]
Education [10]
Energy [0]
Entrepreneurship [74]
Events [7]
Farming [21]
Finance [30]
Future [15]
Growth [19]
Investing [25]
Lean Startup [10]
Leisure [5]
Lens Model [9]
Making [1]
Management [12]
Motivation [3]
Nature [22]
Permaculture [36]
Psychology [2]
Real Estate [5]
Robots [1]
Selling [12]
Site News [17]
Startups [12]
Statistics [3]
Systems Thinking [3]
Trends [11]