Creating a formula from a referenced dimension like in Solidworks.

Hey guys.

Here's an example of what I'm trying to accomplish.
For example: I have a rectangle is its 500 wide. Now I want to define the height that will be half of the width. How can I do this so that it always updates when the width changes?

Thanks in advance.