From 1788: a handy guide to how many hours of sleep you'll need tonight.