Cash Productivity
Calculate the cash productivity of Chandrashekar and Rao (2009): the value the market gives a company beyond its assets, per unit of cash it holds.
Companies that turn their cash into more value are worth more per dollar of cash. Chandrashekar and Rao find that the cash productivity predicts lower returns, as the market overvalues the companies that seem to use their cash best.
The formula is as follows:
\[\text{Cash Productivity} = \frac{\text{Market Cap} + \text{Long Term Debt} - \text{Total Assets}}{\text{Cash and Short Term Investments}}\]The market cap is the one of get_market_cap at the end of each fiscal period and the balance sheet items are those of the same date. Cash and short-term investments of zero or less give NaN.
- Chandrashekar, S. and R. K. S. Rao (2009). “The Productivity of Corporate Cash Holdings and the Cross-Section of Expected Stock Returns.” Working paper, University of Texas at Austin.
Also known as: CashProd.
Example · AAPL, MSFT, KO, XOM · 2021 to 2025
Install the Finance Toolkit with pip install financetoolkit -U, then call get_cash_productivity:
from financetoolkit import Toolkit
toolkit = Toolkit(
["AAPL", "MSFT", "KO", "XOM"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.ratios.get_cash_productivity()
Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:
What was the cash productivity of Apple, Microsoft, Coca-Cola and ExxonMobil, the market value beyond their assets per dollar of cash, from 2021 to 2025?
Which returns:
| Item | 2021 | 2022 | 2023 | 2024 | 2025 |
|---|---|---|---|---|---|
| AAPL | 35.6950 | 45.5883 | 39.8012 | 49.5708 | 64.9430 |
| KO | 15.8997 | 18.9423 | 14.1654 | 14.4664 | 17.2163 |
| MSFT | 13.6447 | 15.4530 | 19.5453 | 37.9817 | 33.1481 |
| XOM | -5.2587 | 4.4536 | 1.9800 | 1.8092 | 9.6737 |
4 rows
Parameters
get_cash_productivity accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
diluted | bool | Whether to use diluted shares in the market cap. Defaults to True. | False |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the ratios. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
compound | bool | Whether the growth is the compound annual growth rate over the lag (e.g. lag=5 for the five-year CAGR) instead of the total change. Defaults to False. | False |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |
transform | str | list[str] | None | Time series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None. | None |
show_columns | str | list[str] | None | The columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column. | None, which keeps every column |
References
- Paper Chandrashekar, S. and R. K. S. Rao (2009). “The Productivity of Corporate Cash Holdings and the Cross-Section of Expected Stock Returns.” Working paper, University of Texas at Austin.