Abstract It is supposed that a company deals with insurance and annuities and the risk reserve varies according to a compound recurrent process. In this paper mathematical methods are given for finding the probability that the risk reserve does not become depleted in a time interval of length t. For the case where the risk reserve varies according to a compound Poisson process, this probability has been found by H. Cramer. The present paper contains a generalization of Cramer's result.