>>64439958
It depends on what got hit. The tank farm reduces storage capacity and while having one start to go up is very bad, it doesn't cripple operations. An AVT is 8-12 months most likely, depending on just how fucked it is, how complex the distillation column is, and if it's just operating at an atmosphere or two, but completely shuts down processing. A crack unit is until a new one can be made, shipped, and installed, which is potentially years. You can still process crude through the AVT and get some output (as long as you reroute the pipes), just not as much of the specific products as if you had a cracker. If you knock out the boiler you also completely shut the thing down but it's a boiler, they're not terribly hard to replace and can generally be built on site. Knocking out a desalter again will shut down everything, don't know the lead time on one of those. Keep in mind that aside from the boiler this equipment is extremely complicated, specialized, and requires very skilled people to build and install and they can only be in one place at a time.
If there's any petrochemical engineers that want to point out where I'm wrong please do so, I'm basing this on things I learned from my grandfather (who was one) years ago and a casual interest in refinery operations.