View source: R/financial_functions.R
| fin_expected | R Documentation |
fin_expected takes a current and fair value, as well as a cost of capital, and returns the expected gain.
fin_expected(
current = 89,
fair = 140,
ticker = "NVDA",
capital = 0.15,
verb = FALSE
)
current |
The current market value of the instrument |
fair |
The user's estimated fair value. |
ticker |
A label for printing |
capital |
The cost of capital (defaults to .15) |
verb |
Verbose or concise (FALSE) |
expected gain
fin_interest()
Other Miscellaneous Functions:
deg2rad(),
fin_JustifiedPE(),
fin_NI(),
fin_interest(),
fin_net_present_value(),
fin_percent(),
fin_ticker(),
fin_valuation(),
rad2deg(),
umxBrownie()
fin_expected(114,fair=140, ticker="NVDA", capital=.15, verb=TRUE)
# NVDA return = 41 %
# delta (fair-current)= $ 26
# growth = $ 21
# expected gain = $ 47
# future value (final) = $ 161
fin_expected(24, 130, ticker="SMMT")
# SMMT return = 523 %
fin_expected(24, 75, ticker="SMMT", verb=TRUE)
# SMMT return = 259 %
# delta (fair-current)= $ 51
# growth = $ 11.25
# expected gain = $ 62.25
# future value (final) = $ 86.25
fin_expected(750, 1000, ticker="LLY", verb=TRUE)
# LLY return = 53 %
# delta (fair-current)= $ 250
# growth = $ 150
# expected gain = $ 400
# future value (final) = $ 1150
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.