Downtime estimation for resilience assessment accounting external factors