There are three things required to justify deadly force.
Ability. (Attacker is capable)
Opportunity. (Attacker is in your space. Within 21 feet)
Intent. (Shows or exhibits danger to you or those near you)
Until those are present you have no stool that will stand up in court in most places. Once one leg of the stool is missing you are required to stop.
If you carry please study your obligations in this reguard. Mosaad Ayoob has written books and knows his stuff.
If you have to defend yourself. You are going to jail.
How long you stay depends on how much you prepare to wear.
Bears repeating....
Probably about 99.99% of lawful carriers know this and practice it and the data shows it. Rarely does a lawful carrier do wrong.
“Opportunity. (Attacker is in your space. Within 21 feet)”
Attacker an be at 50 feet or 30 yards - IF he is “attacking”. And IF that attack has a reasonable chance of resulting in serious injury or death to you or to another innocent person.
“In Arizona, you are justified in threatening or using deadly physical force against another if a reasonable person would believe that deadly physical force is immediately necessary to protect yourself against the others use, or attempted use, of unlawful deadly physical force against you. For example, if someone is threatening you with deadly force, such as a knife, bat, or a gun, you may use a level of physical force which may kill them in order stop them from harming you. However, deadly physical force does not require a weapon. If someone has you pinned down and is choking you, you would probably be justified in using deadly force to protect yourself....
... You do not have a duty to retreat before threatening or using deadly physical force if you are in a place where you may legally be and you are not engaged in an unlawful act. Surprised? All that Stand Your Ground means is that you do not have to run away if you would be otherwise justified to use deadly force.”
https://www.davismiles.com/arizona-self-defense-and-the-truth-about-stand-your-ground/
“Space” is relative. Certainly not 21 feet.