Who this lesson is for
If you are working through the quantitative methods part of a finance qualification, studying corporate finance, or you simply want to know whether an investment really earns what it promises, this lesson is for you. Uneven cash flows are everywhere: a project that pays more in some years than in others, a fund account where you add and withdraw money at different times, a business plan with a ramp-up. Two questions come up again and again. What is this stream of cash flows worth today? And what return did the investor actually earn?
CFA® and Chartered Financial Analyst® are registered trademarks owned by CFA Institute. This course is independent practice in the style of quantitative-methods questions. It is not affiliated with, endorsed by or connected to CFA Institute, it is not official curriculum or exam material, and it makes no claims about how any exam is set or scored. Check the official sources for current requirements. Everything here is educational only and not investment advice.
In this free first lesson you work with Harbor Point Capital, a fictional firm. You value a five-year project with NPV and IRR, then look at one investor's account and measure the return twice: as a money-weighted return and as a time-weighted return. The two answers differ, and understanding why is one of the most useful ideas in performance measurement. All numbers are invented for practice.
The core idea: money has a time value
A dollar today is worth more than a dollar in five years, because today's dollar can be invested and earn a return in the meantime. To compare cash flows that arrive at different times, you move them all to the same point in time, usually today. Moving a future amount to today is called discounting: you divide it by (1 + r)t, where r is the required return per period and t is the number of periods until the cash flow arrives.
The required return, also called the discount rate or hurdle rate, is the return you could earn on an alternative investment with similar risk. In the lab it is 9% per year, chosen as an example. A higher required return makes future cash flows worth less today, so the same project looks less attractive.
NPV: what the whole stream is worth today
Net present value (NPV) is the sum of every cash flow discounted to today, including the initial investment, which is already "today" and therefore not discounted. If NPV is positive, the project earns more than the required return and adds value. If it is negative, you would be better off with the alternative.
Here is the project from the lab: an outflow of 250,000 now and five uneven inflows. The table discounts each flow by hand so you can see what the NPV function does internally.
| Year | Cash flow ($) | Discount factor 1 ÷ 1.09^t | Present value ($) |
|---|---|---|---|
| 0 | −250,000 | 1.0000 | −250,000 |
| 1 | 40,000 | 0.9174 | 36,697 |
| 2 | 60,000 | 0.8417 | 50,501 |
| 3 | 80,000 | 0.7722 | 61,775 |
| 4 | 90,000 | 0.7084 | 63,758 |
| 5 | 70,000 | 0.6499 | 45,495 |
| Total | 90,000 | NPV 8,226 |
The inflows add up to 340,000 in nominal terms, which looks like a 90,000 profit. After discounting at 9%, they are worth 258,226 today, so the NPV is only 8,226. Still positive, so the project clears the hurdle, but by a much thinner margin than the undiscounted sum suggests. Notice how the year-5 flow of 70,000 shrinks to about 45,500 in present-value terms.
=NPV(B6,B4:G4), Excel discounts the year-0 outflow by one year too, and every other flow by one year too many. The result is the correct NPV divided by 1.09, about 7,547 instead of 8,226. Always keep the year-0 flow outside: =B4+NPV(B6,C4:G4).IRR: the break-even discount rate
The internal rate of return (IRR) is the discount rate at which the NPV is exactly zero. It is the return the project itself earns per year on the money tied up in it. In Excel, =IRR(B4:G4) includes the year-0 flow, because IRR treats the first value as "now". For our project the IRR is 10.14%.
The NPV profile below shows the link between the two measures. It plots the NPV of the same cash flows at many different discount rates. The curve falls as the rate rises, and where it crosses zero is the IRR.
For a conventional project, one outflow followed only by inflows, the decision rules agree: accept if NPV > 0, which is the same as IRR > required return. Here 10.14% > 9% and the NPV is positive, so both say accept. The rules can disagree when you rank two mutually exclusive projects of different size or timing, or when the cash flows change sign more than once (then a project can have several IRRs or none). In those cases NPV is the more reliable guide, because it measures value added in dollars.
Money-weighted versus time-weighted return
Now switch from a project to an investor. Over two years the investor buys 100 shares of a fund at 50, buys another 100 at 56 one year later, collects dividends of 1 per share each year, and sells all 200 shares at 60 at the end of year 2. What return did the investor earn? There are two correct answers, and they answer different questions.
| Year | Price ($) | Shares bought (+) / sold (−) | Dividend per share ($) | Shares held in year | Investor cash flow ($) | Holding-period return |
|---|---|---|---|---|---|---|
| 0 | 50 | +100 | 0.00 | 0 | −5,000 | |
| 1 | 56 | +100 | 1.00 | 100 | −5,500 | 14.00% |
| 2 | 60 | −200 | 1.00 | 200 | 12,200 | 8.93% |
The money-weighted return (MWR) is simply the IRR of the investor's own cash flows. Purchases are outflows, dividends and sale proceeds are inflows. Year 0: −100 × 50 = −5,000. Year 1: −100 × 56 + 100 × 1 = −5,500 (a new purchase minus the dividend received). Year 2: 200 × 60 + 200 × 1 = 12,200. The IRR of −5,000, −5,500 and 12,200 is 10.60% per year.
The time-weighted return (TWR) ignores how much money was invested and measures the fund's own performance. You compute the holding-period return of each sub-period between cash flows, HPR = (end price + dividend − start price) ÷ start price, then chain them geometrically. Year 1: (56 + 1 − 50) ÷ 50 = 14.00%. Year 2: (60 + 1 − 56) ÷ 56 = 8.93%. Chained: (1.14 × 1.0893)1/2 − 1 = 11.44% per year.
Why does the MWR (10.60%) come out lower than the TWR (11.44%)? The investor doubled the position just before the weaker year. Year 2 returned only 8.93%, and it was earned on twice as much money as the strong 14.00% of year 1. The MWR gives the second year more weight because more money was at work, so the investor's personal result is worse than the fund's. If the investor had added money before the strong year, the MWR would have been higher than the TWR.
- Use TWR to judge a fund manager, who does not control when clients deposit or withdraw. That is why manager performance is usually reported time-weighted.
- Use MWR to judge the investor's own experience, including the effect of their timing decisions.
- Do not average the HPRs arithmetically to get a per-year rate. (14.00% + 8.93%) ÷ 2 = 11.46%, close here but wrong in general and badly wrong when returns are volatile.
The formulas in the lab
These are the formulas the Coach expects, with the values for the lab data.
| Result | Excel formula | Value |
|---|---|---|
| NPV at 9% | =B4+NPV(B6,C4:G4) | 8,226 |
| IRR of the project | =IRR(B4:G4) | 10.14% |
| Investor cash flow, year 2 | =-D13*D12+D15*D14 | 12,200 |
| Money-weighted return | =IRR(B16:D16) | 10.60% |
| Holding-period return, year 1 | =(C12+C14-B12)/B12 | 14.00% |
| Time-weighted return per year | =((1+C17)*(1+D17))^(1/2)-1 | 11.44% |
How to do it in Excel, step by step
The lab sheet already has the data in place. The same steps work in any workbook.
- Put the years 0 to 5 in B3:G3 and the project cash flows in B4:G4. Outflows are negative, inflows positive.
- Enter the required return in B6 as 9% (Excel stores 0.09). Press Ctrl+Shift+5 for the percent format.
- In B7 type
=B4+NPV(B6,C4:G4). The year-0 flow is added outside the NPV function. - In B8 type
=IRR(B4:G4). This time the year-0 flow belongs inside the range. - Optional check: Data › What-If Analysis › Goal Seek, set cell B7 to value 0 by changing B6. Excel finds the IRR by trial and error. Press Ctrl+Z afterwards to restore 9%.
- For the investor, in B16 type
=-B13*B12+B15*B14and fill right to D16 with Ctrl+R. A sale is a negative purchase, so the minus sign turns it into an inflow. - In B19 type
=IRR(B16:D16)for the money-weighted return. - In C17 type
=(C12+C14-B12)/B12and fill right to D17 for the holding-period returns. - In B20 type
=((1+C17)*(1+D17))^(1/2)-1for the time-weighted return per year. For n years use the power 1/n. - Audit with Ctrl+`: the NPV must not include B4 inside the function, and both IRR ranges must start at year 0.
Common mistakes and how to spot them
- Putting year 0 inside NPV.
=NPV(B6,B4:G4)gives about 7,547 here instead of 8,226. Spot it: your NPV equals the right answer divided by (1 + r). - Adding without discounting.
=SUM(B4:G4)gives 90,000, ignoring the time value of money. Spot it: the result does not change when you change the rate. - Wrong signs for the investor. Treating purchases as inflows flips the cash flows, and IRR returns a meaningless or negative rate. Spot it: the first investor flow should be negative.
- Forgetting dividends. The investor's flows and the HPRs both include income. Leaving it out understates both returns.
- Confusing MWR and TWR. Calling the chained HPR result the MWR, or the IRR the TWR. Spot it: TWR uses prices only, MWR uses the investor's dollar flows.
- Not annualising. (1.14 × 1.0893) − 1 is the two-year return, about 24.2%. Take the square root of the growth factor for a per-year rate.
- Trusting IRR with non-conventional flows. If the signs change more than once, check the NPV profile. Several IRRs are possible.

Quick reference: functions and shortcuts
Keep these next to the lab. They cover everything in this lesson and prepare the next one.
| Function / shortcut | What it does | Example |
|---|---|---|
NPV(rate, values) | Present value of flows that start one period from now | =B4+NPV(B6,C4:G4) |
IRR(values, [guess]) | Rate that makes the NPV of evenly spaced flows zero | =IRR(B4:G4) |
XNPV / XIRR | Same ideas for flows on actual dates | =XIRR(values,dates), dates in their own row |
PV(rate, nper, pmt) | Present value of a level annuity (next lesson) | =PV(9%,5,-1000) |
SUMPRODUCT | Discount by hand: flows × discount factors | =SUMPRODUCT(B4:G4,1/(1+B6)^B3:G3) |
^ | Power, for compounding and geometric averages | =(1.14*1.0893)^(1/2)-1 |
| Data › What-If Analysis › Goal Seek | Find the rate that sets NPV to 0 (a manual IRR) | Set B7 to 0 by changing B6 |
| Ctrl+Shift+5 | Percent format | Select B8 |
| Ctrl+` | Show formulas to audit the sheet | Press again to switch back |
Real-world uses
- Capital budgeting. A company weighing a new machine, store or software system discounts the expected cash flows at its required return and invests only when the NPV is positive.
- Comparing fund managers. Fund performance is usually compared on a time-weighted basis, so that client deposits and withdrawals do not distort the manager's skill.
- Reviewing your own portfolio. The money-weighted return (often shown by brokers as a personal rate of return) tells you how your timing of deposits and withdrawals worked out.
- Private equity and real estate. Investments with irregular calls and distributions are typically described with IRR, because the investor's cash flows drive the result.
- Loan and lease decisions. The IRR of a financing offer's cash flows is its effective cost, which you can compare with other offers.
What you will build in the rest of this course
This first lesson is free. The remaining 19 lessons are part of the paid course (one-time price). Each one is a new Harbor Point case with its own live lab and Coach.
Annuities & Perpetuities: Ordinary vs Due, Deferred & Growing. You value a 10-year payment stream paid at year-end and at the start of each year, a preferred share, a perpetuity that starts later and a growing dividend, using PV and the perpetuity formulas.
Describing Returns: Mean, Median, Geometric Mean, Skew & Kurtosis. You describe ten years of fund returns with arithmetic and geometric means, the median, skewness and excess kurtosis, and see why the geometric mean is the one that compounds.
Probability: Expected Value, Variance, Covariance & a Two-Asset Portfolio. You weight scenario returns by probability to get expected return, standard deviation, covariance and correlation, then the risk of a 60/40 portfolio.
Binomial & Normal Distributions, z-Scores and Safety-First. You compute binomial probabilities for a trading signal, a z-score for a bad year and Roy's safety-first ratio with the shortfall probability of three portfolios.
Sampling & Confidence Intervals with the t-Distribution. You build 95% and 99% confidence intervals for a fund's mean monthly return from a small sample, with the standard error and critical t values.
Hypothesis Testing: t-Test of a Mean, p-Value & Decision. You test whether a fund's mean active return is above zero with the t-statistic, the critical value, a one-tailed p-value and the decision rule.
Simple Linear Regression: Beta, R², SEE & the t-Test of the Slope (Chart). You regress a fund's excess returns on the market's, read the slope as beta, measure fit with R² and SEE, test the slope and chart the regression line.
Summary
To value uneven cash flows, discount each one to today and add them up: that is the NPV, 8,226 for the Harbor Point project at 9%. In Excel keep the year-0 flow outside the NPV function. The IRR, 10.14% here, is the rate where NPV is zero, and for a conventional project NPV > 0 and IRR > required return lead to the same decision. For an investor, the money-weighted return is the IRR of their own flows (10.60%), while the time-weighted return chains the holding-period returns (11.44%) and removes the effect of timing. The gap between them tells you whether the investor's timing helped or hurt.
Now scroll up to the lab and do it yourself: NPV, IRR, the investor's cash flows, the money-weighted and the time-weighted return. The Coach checks each answer, also with changed numbers, and explains the trap whenever you fall into one.
Frequently asked questions
How do you calculate NPV in Excel?
Use =initial cash flow + NPV(rate, later cash flows), for example =B4+NPV(B6,C4:G4). Excel's NPV function assumes the first value arrives one period from now, so the year-0 flow must stay outside the function.
Why is my Excel NPV different from my calculator?
Most often the year-0 cash flow was included inside the NPV function, which discounts every flow by one period too many. The result is then the correct NPV divided by (1 + rate).
What is the difference between NPV and IRR?
NPV is the value a project adds in today's money at a given required return. IRR is the discount rate at which the NPV is zero. For conventional projects both lead to the same accept or reject decision.
What is the difference between money-weighted and time-weighted return?
The money-weighted return is the IRR of the investor's own cash flows, so it reflects the timing and size of deposits and withdrawals. The time-weighted return chains the holding-period returns and removes that timing effect.
Why are fund managers evaluated on time-weighted return?
Managers usually do not control when clients add or withdraw money. The time-weighted return removes the effect of those cash flows, so it reflects the manager's investment decisions rather than client timing.
Is this course affiliated with CFA Institute?
No. It is independent practice in the style of quantitative-methods questions and is not affiliated with, endorsed by or connected to CFA Institute. It is educational only and not investment advice.
Keep going: Quantitative Methods Practice for Finance Exams (CFA-Style Level I)
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.
- Annuities & Perpetuities: Ordinary vs Due, Deferred & Growing
- Describing Returns: Mean, Median, Geometric Mean, Skew & Kurtosis
- Probability: Expected Value, Variance, Covariance & a Two-Asset Portfolio
- Binomial & Normal Distributions, z-Scores and Safety-First
- Sampling & Confidence Intervals with the t-Distribution
- Hypothesis Testing: t-Test of a Mean, p-Value & Decision
- Simple Linear Regression: Beta, R², SEE & the t-Test of the Slope (Chart)
- Stated, Effective & Continuously Compounded Rates: EAR, Conversions and Rate Comparisons
- Annualised, Real, Log & Leveraged Returns
- Loan Amortisation & Funding a Goal: Payment, Interest Split and a Two-Stage Retirement Plan
- Implied Returns & Cash-Flow Additivity: Bond Yields, Implied Growth and Forward Rates
- Risk-Adjusted Returns: Sharpe Ratio, Downside Deviation & Sortino Ratio (Chart)
- Three-Asset Portfolios: Correlation Pairs, Portfolio Risk & Diversification (Conditional Format)
- Conditional Probability, Bayes' Formula & Counting Rules
- Lognormal Prices & Monte Carlo Simulation: Expected Price, Shortfall Probability and a Histogram
- Comparing Two Groups: Pooled t-Test of a Difference in Means and the Paired t-Test
- Tests of Variance and Correlation: Chi-Square, F-Test and the t-Test of r
- Regression ANOVA & Prediction Intervals: SST, SSR, SSE, the F-Test and Forecasting
- Final Project: Fund Review Dashboard with Growth of $100, Sharpe Ratio and a Significance Test (Chart)