how many calories do i need to eat to lose weight?

I’m 5’5" and currently weight 230lbs. Obviously this is a dangerous and unhealthy weight to be at so I want to start lowering my calorie intake to lose some of this weight. I want to get down to 180lbs by at least December, that’s six months from now and 50 lbs to shed. So, I’m wondering how many calories do i have to eat to lose those 50lbs in six months?