Balance is achieved by aligning a structure with Earth, Water, Fire, Air, and Space.
Authentic Vastu requires six mathematical formulas ( Ayadi Shadvarga ) to determine the length, breadth, and height of a building. Modern apps cannot do this. The PDF of "Mayamata" chapter 12 contains the exact algorithmic steps. You can copy this into an Excel spreadsheet for your own plot.