Scaling entity by screen height (simulating depth on orthographic camera)

Help please.

i want my entities to be at 100% scaling (for example 128x128 pixels) when they are at 40% of the screen height (for example 480 pixels at 100%), so when they are at 41%, they are at 99% scaling (126,72x126,72 pixels).

any idea?