Calculation and design of buildings and structures