How to calculate stress in beam &column