Add time judgement for period