Blankets and toddlers

How old was your child when they understood to cover up when they were cold and take the blanket off when they were hot?