Depending on how big you want them to get. Usually, note that, USUALLY, the plant will double in size by the time its harvested. Allowing longer vegging periods increases yeild, but also overall size.
Normally the average indoor vegitation period is anywhere from 4-8weeks.
What type of compact do you have? watts? lumens?

hope this helped