When you install a game, you can play it as much as you want until your subscription ends. After that, the game remains installed, but to continue playing it simply get another Game Pass Code and use your prepaid credit to resubscribe or buy the game permanently!