A new study shows how math helps explain why babies nap erratically, teens stay up late, and older adults wake earlier. Researchers expanded the classic two-process sleep model by adding the effects of light exposure, uncovering how internal and external factors interact to regulate sleep.