What is the formula to solve for the slant height of the side triangles in the rectangular pyramid?

The formula to solve for the slant height of the side triangles in a rectangular pyramid is:

Slant height = √(height^2 + (0.5 * base length)^2)