c_last_twelve_months_net_income#
- c_last_twelve_months_net_income(fis_net_income, f_fiscal_year, f_fiscal_period, configuration)[source]
Calculate the last twelve months net income (LTM net income).
For quarterly periods this function computes the rolling sum of net income over the last four quarters.
- Parameters:
fis_net_income (DataColumn) – The net income for each period.
f_fiscal_year (DataColumn) – The fiscal year for each period.
f_fiscal_period (DataColumn) – The fiscal period (e.g., quarter) within each fiscal year.
configuration (Configuration) – Configuration object with attribute period (“quarterly” or “annual”).
- Returns:
The last twelve months net income.
- Return type:
Notes
For quarterly data, LTM net income is the rolling sum of the current and previous three quarters:
\[\mathrm{LTM\ Net\ Income}_t = \sum_{i=0}^{3} \mathrm{Net\ Income}_{t-i}\]For annual data, return the period net income directly.