Right before bedtime there should be no carbs at all.
There are a couple of reasons for this:
1. If we have consumed carbs before going to bed, then most of them will dispose as fat while the organism is in a sort of standby state and the energy consumption is low.
2. Because the carbs intake before bed obstructs the release of growth hormone, which has a big impact on muscle growth and recovery and also on burning fat.