calculation of devastation