For how long , age

Rr • Between love and hate . I choose love . Spread it even if you dont get it back.
For how long a baby can still fit n sleep in bassinet of pack n play ? 
I mean till what age limit.
I wanna know if i buy a pack n play how long will it be useful for my LO.