How old does a hamster have to be to go in the ball?

a hamster can be any age except when it is a baby