Success or failure of a firm under different financing policies: a dynamic stochastic model