A General Model of Stock Valuation