As I understand it you generally have 5 years for hardware and software support with software requiring that you upgrade to major versions as they're released for continued updates. Perhaps someone can share a link or provide better details for software support/EOL info?
Here's their vintage/obsolete products info page: https://support.apple.com/en-us/HT201624