The month of fighting between Israel and Hamas is likely to have cost the two sides a combined $8 billion, three-quarters of it suffered by Gaza, according to Israeli and Palestinian estimates.