Think you'll find the formula is 20yrs experience and several dozen blown Allegro(A4988) chips.?

The Amp's is simple multiply the number of steppers Amp's plus a bit spare capacity.

The lower voltage is safety margin due to the allegro chip being notoriously bad at letting out the Magic smoke any higher. Coupled with the fact the next standard PSU will be 36V.