a Luna mot usually stays in its cocoon for 2-3 weeks, i am recently hatching one! make sure you mist the aquarium every so often. glad i could help! = )
This is really depends on the type of caterpillar you have/seen. (whatever)
It can take a few weeks;
but before winter arrives, butterflies have the ability to make the process last for months at a...