Orthographic camera smoothly zoom out to see the two objects?

In the scene I have an object at position Vector3(0, 100, 0) and another object at this position Vector3(0, -50, 0).

The camera is at Vector3(0,0,0). (Default values with projection “Orthographic”).

Now I want to smoothly zoom out the camera so the camera sees this objects near at the top and bottom of the camera frame.

How can I achieve this? I found, that I must change the camera.main.orthographicSize. My problem is here, that I don’t know how to calculate this.

Try out Mathf.Lerp