<h1>Diode/LED Model Calculator</h1>

Forward voltage: <input type="text" id="forward" value=".6" oninput="calc()"><p>
Current at above voltage: <input type="text" id="current" value="18m" oninput="calc()"><p>
Saturation current (reverse current): <input type="text" id="reverse" value="171n" oninput="calc()"><p>
Model name: <input type="text" id="modelname" value="model" oninput="calc()"><p>

<div id="values"> </div><p>
Series resistance: 0<p>
<div id="link"> </div><p>

<script>
function convertValue(s) {
  