For weight loss, the typical rule of thumb you hear bandied about is ‘Don’t eat any food within 3 hours of bedtime’. However, I have found that keeping a gap of at least 4 hours between the last gulp of food and hitting the sack is far more effective.
Call me to discuss many more ideas about nutrition.