Let's start all over again. I have said numerous time fasting should not be used as a weight loss tool. It is very important that diet is changed and changes are permanent, also exercise is made part of the regimen to lose weight.
As far as fasting and number of days is very subjective, one can get true hunger before reaching to 30 days, one can reach to it in 40 days. The reason I say no to 40 day fast is that after 30 days your nutritional reserves may be depleted and one has to be cautious after that in continuing with the fast.
In your case I also suggest to do other cleanses such as kidney, colon and liver cleanse. If you have been drinking alcohol and eating processed foods your liver is compromised. Our liver is a wonderful organ and it will rejuvenate after cleanses and by taking some liver friendly herbs.
I also suggest that you organic raw fruits and vegetables, seeds and nuts for as long as you can and see how much weight you lose. This will be very helpful to your body and mind.
Please feel free to pm me and we can work together to get out of the seesaw of fasting and binging.