Your new Casper mattress should stay in the box for no more than three months. Anything longer than that can damage the foam, affecting its ability to expand and provide adequate support.
Ideally, unbox your mattress as quickly as possible and place it in a cool, well-ventilated room. Keep it away from moisture and high temperatures.
