The Maximum Energy Of Shock-Accelerated Cosmic Rays