Modelling financial durations via a parametric and semiparametric approach