display damage culculation formula