I said it was hard to present how the formula was derived, but I decided to try anyway.
Look at attached pdf. First page is showing my thought process for deriving 'classic' fixed fastener positional callout formula. I presented it just because very similar approach was used for finding the formula you were asking for.
I am sure there are also different ways to get to the same result.
What a beautiful start for a day!
Logged in just to give credit when credit is due.
In today's world of memorizing without understanding my hat is off to you, sir!