Keep max. warmth for 2h after bedtime, and then start reducing for 2h, so that 4h after bedtime we have reached zero warmth.