It depends, at the start I was trying to lose weight so, I ate low carbs and my training wasn't improving at all (I wasn't really fat, just a few pounds overweight), after some time, I went for more carbs and hell man, it fell really good, my training improved almost instantly
My recommendation, like the guy above, its 2-2.5k max, Idk your height or weight to be more accurate... You also have to see you weight weekly, so you know you are doing fine or you need more/less food, for example: you are eating 2.3k calories, well distributed but you lost weight, then you need to eat more until you gain weight(if your goal is to get muscles).
But one thing no1 says and its really important. When you are growing muscle, unless you have a great body(not common) you'll gain fat. You should one of these 2: eat more for 2-3 months to grow up, and a little bit less for 1 month or 1.5 months so you remove that fat and your muscles show up. The other option is eating a little more than you should, gaining weight until suddenly you start losing, because you developed your muscles, you started to burn more calories and that causes a natural fat lose. This second one is for more experienced guys, maybe you can start doing this after 1 year and half or 2, if you developed good. This second option allows you to stay fit more time, the 1st one will make you look fat for some time, usually after those 2 growing months
Sorry for the huge text, this is an interesting topic and there's a lot to learn from it