A Starbucks vice-president once told the New York Times that algorithmic scheduling was a "magic" way to save money on labor.