Created
February 19, 2020 22:32
-
-
Save theverything/a5b46123dde295a2d6d954be3193fbb9 to your computer and use it in GitHub Desktop.
Calculate the break even of options vs RSUs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* @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