Computing the Impact of Disasters on Networks