Semi-Markov Monte Carlo simulation model for finance and insurance applications.