Learning marathon or short sessions? Find your optimal learning time