Calculate capital gains yield, dividend yield, and holding period return dynamically.
Capital Gains Yield is the percentage increase in the price of an asset over time, calculated by comparing the bought price and the current price. This metric helps investors assess how much their investment has appreciated in value.
Dividend Yield is the percentage of a company's share price paid to shareholders in dividends. It’s a key metric to evaluate the return on an investment from dividends.
Holding Period Return (HPR) is the total return on an investment over a specific period, calculated as a percentage of the initial investment. It includes capital gains and dividends received.