A car accelerates uniformly from rest. Initially, its door is slightly ajar. Calculate how far the car travels before the door slams shut. Assume the door has a frictionless hinge, a uniform mass distribution, and a length L from front to back.