The Science of Fasting

I do the 8 hours a day eating window. I have lost 45 pounds since May. That is without being 100% dedicated to the gym and only going in spurts(typically 3 days a week). That is mostly from changing my diet from fast food every meal and using the 8 hour eating window. Now I do good during the weekdays, but when it comes to the weekend I set myself back almost every weekend some way shape or form... but 270 to 225... and still rolling. I'd probably be a lot further along if not for ******* myself every weekend, but I am not trying to go over board and ruin the overall lifestyle change by completely restricting myself from the good ****... I'm sure the skip a day fasting works as well as I am pretty meticulous with weighing myself just to see how my body is retaining water and eliminating waste.