Recoup a Loss
This calculates the percentage that was lost and then the percentage needed to recoup the loss. Starting Amount --> [text name="Variable_1" memo="the bigger amount"] Ending Amount --> [text name="Variable_2" memo="the smaller amount"] The Loss: Going from [var memo="starting amount" name="Variable_1"] to [var memo="ending amount" name="Variable_2"] is a [calc memo="xxx" value="score1= (100*((Variable_1)-(Variable_2))/(Variable_1)).toFixed(1)"] percent loss. Recouping the Loss: Getting back from [var memo="ending amount" name="Variable_2"] to [var memo="starting amount" name="Variable_1"] would require a [calc memo="xxx" value="score2=(-100*((Variable_2)-(Variable_1))/(Variable_2)).toFixed(1)"] percent gain.
Result - Copy and paste this output:
Sandbox Metrics: Structured Data Index 0, 8 form elements, 45 boilerplate words, 2 text boxes, 4 variables, 2 calculations, 2 total clicks
More SOAPnotes by this Author:
Send Feedback for this SOAPnote
You must be logged in to post a comment.