Nearest deadline alert function implemented