It's not that easy because what you eat matters. It's not unusual for people to train for a half marathon or marathon and gain weight because they think with all the extra miles they can eat more.
It's based off calories but also carbs, fat and protein. I know how many calories I can eat but I also know what % of the three I should have. I have a hard time, like many do, of getting enough protein. I'm not a fruit or veggie person for the most part but even my daily apple adds to my carbs. For me as I'm trying to lose the body fat more than the lbs because I probably only have around 10 to lose and should be gaining muscle while I'm doing this I'm not as concerned about that number. My bf% was 38 at it's highest when checking at the gym while checking it over the span of 2 months. All I did was cut out the extra sugar I was eating thinking that would help, at 40 it wasn't enough. I've gotten it down to 32 but a few days of too many carbs due to where I was and it was back to 35.
I've cut out hot chocolate and coke, not that I was having either everyday but they were adding too much so they need to be treats. I've drastically reduced the amount of peanut butter and cheese I eat

If I want one of them I plan things around it. I measure my cheerios now, a serving is a cup but that's too much so I actually eat a half a cup instead of probably half that I was getting before. I have a salad (iceburg, ham, 1 egg, cheddar, cucumber, fat free ranch) for lunch and a kroger light greek yogurt for a snack. This all has me at a great ratio and then dinner happens

But I am good more often than not and am more aware of what I'm eating. Snacking on beef jerky instead of something else stuff like that. The hard part is that carbs are everywhere and some are better than others, like the apple is better than pizza. If I liked more veggies and beans this would all be so much easier but that salad, corn and potatoes are about it. And it's not from lack of trying them. It comes down to taste, texture or both.