{"slug":"is-there-a-minimum-holding-period-for-stocks","qid":"settlement_gap","label":"Days between ex-dividend date and record date, ten household payers","post_title":"Is There a Minimum Holding Period for Stocks?","post_url":"/blog/is-there-a-minimum-holding-period-for-stocks#q-settlement_gap","columns":["quarter_date","quarter_label","avg_days_ex_to_record","dividends_count"],"rows":[{"quarter_date":"2022-01-01","quarter_label":"Q1 2022","avg_days_ex_to_record":1.5,"dividends_count":10},{"quarter_date":"2022-04-01","quarter_label":"Q2 2022","avg_days_ex_to_record":1.3,"dividends_count":10},{"quarter_date":"2022-07-01","quarter_label":"Q3 2022","avg_days_ex_to_record":1.2,"dividends_count":10},{"quarter_date":"2022-10-01","quarter_label":"Q4 2022","avg_days_ex_to_record":1.2,"dividends_count":10},{"quarter_date":"2023-01-01","quarter_label":"Q1 2023","avg_days_ex_to_record":1.5,"dividends_count":10},{"quarter_date":"2023-04-01","quarter_label":"Q2 2023","avg_days_ex_to_record":1.2,"dividends_count":10},{"quarter_date":"2023-07-01","quarter_label":"Q3 2023","avg_days_ex_to_record":1.4,"dividends_count":10},{"quarter_date":"2023-10-01","quarter_label":"Q4 2023","avg_days_ex_to_record":1.2,"dividends_count":10},{"quarter_date":"2024-01-01","quarter_label":"Q1 2024","avg_days_ex_to_record":1.8,"dividends_count":10},{"quarter_date":"2024-04-01","quarter_label":"Q2 2024","avg_days_ex_to_record":1.3,"dividends_count":10},{"quarter_date":"2024-07-01","quarter_label":"Q3 2024","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2024-10-01","quarter_label":"Q4 2024","avg_days_ex_to_record":0.3,"dividends_count":10},{"quarter_date":"2025-01-01","quarter_label":"Q1 2025","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2025-04-01","quarter_label":"Q2 2025","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2025-07-01","quarter_label":"Q3 2025","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2025-10-01","quarter_label":"Q4 2025","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2026-01-01","quarter_label":"Q1 2026","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2026-04-01","quarter_label":"Q2 2026","avg_days_ex_to_record":0,"dividends_count":10},{"quarter_date":"2026-07-01","quarter_label":"Q3 2026","avg_days_ex_to_record":0,"dividends_count":10}],"shape":"series","sql":"WITH deduped AS\n(\n    SELECT\n        id,\n        any(ex_dividend_date) AS ex_date,\n        any(record_date)      AS record_date\n    FROM global_markets.stocks_dividends\n    WHERE ticker IN ('AAPL', 'MSFT', 'KO', 'JNJ', 'PG', 'XOM', 'CVX', 'JPM', 'ABBV', 'CSCO')\n      AND ex_dividend_date >= '2022-01-01'\n      AND ex_dividend_date <  '2026-10-01'\n    GROUP BY id\n)\nSELECT\n    toString(toStartOfQuarter(ex_date))                                       AS quarter_date,\n    concat('Q', toString(toQuarter(ex_date)), ' ', toString(toYear(ex_date))) AS quarter_label,\n    round(avg(dateDiff('day', ex_date, record_date)), 2)                      AS avg_days_ex_to_record,\n    count()                                                                   AS dividends_count\nFROM deduped\nWHERE record_date >= ex_date\n  AND dateDiff('day', ex_date, record_date) <= 10\nGROUP BY quarter_date, quarter_label\nORDER BY quarter_date","computed_at":"2026-10-05T15:13:23.749892+00:00","elapsed":0.003185929}