I cannot figure out how to do this for the life of me.

Is there some sort of formula to figure out the exact spacing?