Gravar-mail: Markov chains and semi-Markov models in time-to-event analysis