New equation predicts the best time to launch a cyber attack