We study the distribution of the time to ruin in the classical risk model. We
consider some methods of calculating this distribution, in particular by using
alrithms to calculate finite time ruin probabilities. We also discuss calculation of the moments