How many calories should I eat to lose weight?

How do you know if you’re eating enough to lose weight the right way?