Depends whether you are bulking or cutting...also is very dependant on your metabolism and what bodytype you fall under.
If you're a skinny ectomorph, eat everything under the sun. Youre gonna have o in order to ingest the sheer amount of calories needed to gain significantly. Also, ectos should stay as far away from cardio as possible if you wanna gain as quickly as possible too.
Endomorphs, gain weight/muscle a lot more easily and have to watch more closely what they eat. Mesoporhs can basically do wtf ever they please and they'll still gain fast and stay relatively low bf%. But bottom line, when bulking is to get higher than maintenance calories. How much? ..like I said, it depends on you.
Cutting is an entirely different ballgame.