APL (Dyalog Extended), 4545 44 bytes
+/×{+/{a b c←⍵⋄√(×/a÷b ca×a÷b×c)+2-(⊢+÷)b÷c}¨⌽∘⍵¨⍳3⌽∘⍵¨⍳3}
Bubbler has a 27 byte solution with a complete train, but I think it deserves it's own answer.
This is a port of Surculose Suptum's formula, simplified by Kevin Cruijssen.
-1 byte from dzaima.