Making the most of your day: online learning for optimal allocation of time