Until it leaves
my anwer is they stay in there coocoons for a spring
It usually live outside the cocun for about a week. Their sole purpose is to lay eggs. After that, they die.
They stay in for 2 hours
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...
Well, it all depends on the kind of moth. If it is a gypsy moth than about 17 days.
The Difference Between Butterflies and Moths
How to Grow Roses to Bloom
How to Treat Winter Moth
Getting Rid of Pine Tip Moths