The Stochastic Time-Constrained Net Present Value Problem