how to find margin of safety percentage