Spending vs Productivity with online learning