For retirement plan purposes, you have until 8 ½ months after plan year-end (9/15 for a calendar year plan) to make the non-elective/profit-sharing contributions. You have until 12 months (12/31 for a calendar year plan) after plan year-end for safe-harbor contributions.
For that year’s deduction purposes, you have until the due date (with extension) of your entity return.