Google officially supports Chromebooks with several years of automatic updates—importantly, this is from the time they're released, not when you purchase one—and has a tool in ChromeOS to show how long your system will be updated. The hardware itself will continue to work for a short period even after it stops receiving updates.