A Generalized Earnings Model of Stock Valuation