insurance settlement calculation