mathematical way to calculate best route of bandit event/new year event