NPV is used to determine when, if ever, a capital investment will generate a profit, and how much that will be in today’s terms. Cash Flows of future years are discounted because ‘cash next year’ is worth less than ‘cash this year’ for a variety of reasons (inflation, risk, etc.). See for example, this NPV Calculator.