My foolproof plan is to use Windows 10 until 2030, with the latest security updates.