Analysts at Wells Fargo and Goldman Sachs said the total cost, including non-insured damages, could top $40 billion.