Grasshopper angle=height

Hello, I need advices about a relationship between heights and a surface.

I have a grid of squares. When I push selected vertices in the Z direction, I would like my surface follows proportionally the movment in the Z direction. In other words, I’d like to creat a link between the heights of my vertices and the bend of my surface.

Is anyone has an idea ?
Thank you in advance.

Angle=Height.gh (16.2 KB)