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.
This calculates the percentage that was lost and then the percentage needed to recoup the loss.

Starting Amount --> the bigger amount
Ending Amount --> the smaller amount

The Loss: Going from starting amount to ending amount is a xxxscore1=
(100*((Variable_1)-(Variable_2))/(Variable_1)).toFixed(1)
percent loss.

Recouping the Loss: Getting back from ending amount to starting amount would require a xxxscore2=(-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
Questions/General site feedback · Help Ticket

Send Feedback for this SOAPnote

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More SOAPnotes by this Author: