I have written a javascript function which accepts a number of variables to produce a result what I need to do is produce a result which is 0.00 (+/- 0.01) by adjusting a percentage value that is passed to the function.

Fiddle: <http://jsfiddle.net/jerswell/33vyvm6n/>

If you select the first item from the list you will see the table updates with results and from there a user can enter a value into the `Price ($)` field say `100` click calculate and the results panel will show the results of the calculation. 

The YTM when selected is `4.371` which produces a result of a `Price ($)` = `8.52` 

What I need to achieve is to show a result of `0.00 (+/- 0.01)` by iterating through the YTM value and decrementing or incrementing by 0.001 until this result is achieved, for this example a YTM of `6.002` gets us close enough as we are happy with a `+/- 0.01` variation in the output.

On line `114` of the fiddle there is an if statement that I have started but I am now stuck as where to go from here.

```
    if (bondCalculation.calculatedPrice !== 0) {

    }

```