setting countdownattr value on tick