Executives are scrambling to track returns on AI investments as the bill for massive computing needs comes due.