Skip to content

Instantly share code, notes, and snippets.

@theverything
Created February 19, 2020 22:32
Show Gist options
  • Save theverything/a5b46123dde295a2d6d954be3193fbb9 to your computer and use it in GitHub Desktop.
Save theverything/a5b46123dde295a2d6d954be3193fbb9 to your computer and use it in GitHub Desktop.
Calculate the break even of options vs RSUs
/**
*
* @param {number} multiplier The RSU to options ratio. A value of `3` would mean 3 options to 1 RSU.
* @param {number} strike The dollar amount of the options strike price.
*/
function calc(multiplier, strike) {
const percent = 1 / (multiplier - 1);
const currentPrice = strike * (percent + 1);
console.log("Break Even Price: $%s", currentPrice.toFixed(2));
console.log("Price Increase Percentage: %s%", (percent * 100).toFixed(2));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment