# More formulas

1. Click on the widget below *Contribution*, and enter this formula, either manually or by copy & paste:

<mark style="color:blue;">#startAmount</mark> + (<mark style="color:blue;">#year</mark> \* <mark style="color:blue;">#addRate</mark>)

2. Type the *Return* key or just click outside of the formula editor afterwards. You see now the total contribution you willl add to the investment over the years.

<figure><img src="https://3148043601-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FL43fiRbeRtPnTjMpbGNO%2Fuploads%2Fgit-blob-0e386e77d403791e6c5574d34e46217f3ecc1948%2Fgrafik%20(415).png?alt=media" alt=""><figcaption></figcaption></figure>

3. Click on the widget below *Total Value*, and enter this formula:

<mark style="color:blue;">#startAmount</mark> \* ((1+<mark style="color:blue;">#growthRate</mark>)^<mark style="color:blue;">#year</mark>)+<mark style="color:blue;">#addRate</mark>\*((1+<mark style="color:blue;">#growthRate</mark>)^<mark style="color:blue;">#year</mark>-1)/<mark style="color:blue;">#growthRate</mark>

4. Type the *Return* key or just click outside of the formula editor afterwards. You see now the total value of the investment over the years.

**Note**: This is a more complicated financial function (called "NVP formula"), using all available arithmetical functions in nedyx, including the exponential operator "^".

5. Click on the widget below *Growth*, and enter this formula, either manually or by copy & paste:

<mark style="color:blue;">#totalValue</mark> - <mark style="color:blue;">#contribution</mark>

Now all calculation formulas are defined. You can check the result by changing the values in the four cell widgets. The content of the table widgets adjusts automatically.
