A few months and they are loving expensive.
Pet shop owner cash cow.
Ehh... If yours only lives a few months, either you've gotten a sick one or you're not a very good hamster owner.
They tend to live 1-2 years, although a friend of mine had one that lived until the age of about 4 or 5.