A stochastic programming model for money management