For a new tank, 4 to 6 hours a day. Any longer will just make the inevitable algae problems worse. Same as while cycling and with fish only. Once you have fish, keep the lights on while you want to watch them, but no longer than 8 to 12 hours a day. Once you have corals, 8 to 12 hours should be fine.