Formula for cantilever beams deflection and moment