A Dynamic Model of Firm Valuation