How do you calculate how many calories you need? Doesn't it depend on weight?
Yes, and on age, and importantly, on activity level. (And on genetics, but we don't know how to measure this yet.) Type calorie requirements into any search engine and you'll find some guidance on how to estimate same.
It is not an exact science, but you can definitely get a good idea.