How Much Should You Spend on AI?