Discounted cash flow (DCF) is a valuation method used to estimate the attractiveness of an investment opportunity. Learn how it is calculated and when to use it.