The mathematics of stopping your car