Need help with my subscription

Well my account is running out next week and I tried modifying my subscription, instead of paying for a month or another year I tried adding another code but it said my code is only possible for making a 2 month account.

how would I get a code which would make my account be valid for longer?

I don’t know. I suggest calling Xbox live customer service.