A pod receives SIGTERM at second 0. Its pre-stop hook sleeps for 5 seconds, then the application begins a 12-second drain. Kubernetes sets terminationGracePeriodSeconds: 15 and force-kills anything still running when that period ends.
Read the shutdown calculation. How many seconds of the application's requested drain can actually run?