changed earthquake cost calculation