Write it in a complete sentence.

To see how long it would take for Herbivores, Carnivores, and producers to disappear.

The purpose of the experiment was to determine how long it would take for herbivores, carnivores, and producers to disappear.