Questions about NPV methods to value a business

For those who have real business valuation experience: Every year you discount the cash flow so my question is how you determine the numbers of the years, is it based on the life of the business? And how you figure out the discount rate? (T-bill + what?)