The Stock Market, the Objective Function of the Firm, and Intertemporal Pareto Efficiency -- The Certainty Case