SFRatio function

Computing Roy's safety-first ratio