Mainstream full Windows support is minimum five years after release, or two years after the release of the successor product. Microsoft offers extended support five more years, or two years after the second successor product. Security fixes are available to the public during this period. That means you will get at least security fixes for Windows 7 through minimum 2019.
Microsoft has problems, but their long-term support for systems is very good, far better than Apple.