Abstract: We consider the time of ruin for a Markov-modulated risk model, using two different approaches. One approach requires a constant premium income, while the other allows the premium to vary according to the environment state. Solutions for the density of the time of ruin involve integral expressions. We discuss the computational issues arising from these solutions, as well as considering the special case when there are only two environment states.