implemented probability_in_period for TemporalEvent