notification time calculation