Honestly? As terrible as it sounds, it can be almost arbitrarily high if you look at the Geneva convention.
For example, a hospital can be targeted after nothing more than a warning if the hospital isn’t used for humanitarian purposes only. There is no minimum duration specified between the warning and the attack.
Not that the Geneva conventions are a guide for morality. They solely limit the maximum of cruelty during war.