How to make tangential corners on a rectangular prism?

Hi,

How can you create tangential corners as seen in the photo I’ve attached on a rectangular prism?

Best regards.

1/2 sphere subtracted from the end and then use the mirror tool might work.