Latency Guarantee for Ubiquitous Intelligence in 6G: A Network Calculus Approach