JSFiddle - React, Tailwind, and code Playground

by Anders Kitson

HTML

<table>
        <tr>
            <th>Enter Load Data:</th>
            <td></td>
            <th>Loan Balance, Cumulative Equity, and interest Payments</th>
        </tr>
        <tr><td>Amount of the loan ($):</td>
            <td><input id ="amount" onchange="calculate();"></td>
            <td rowspan=8>
                <canvas id ="graph" width="400" height="250"></canvas>
            </td>
        </tr>
        <tr><td>Annual interest(%):</td>
            <td><input id="apr" onchange="caluclate();"></td>
        </tr>
        <tr><td>Repayment period (years):</td>
            <td><input id="years" onchange="calulate();"></td>
        </tr>
        <tr><td>Zipcode (to find letters):</td>
            <td><input id="zipcode" onchange="calculate"();"></td>
        </tr>
        <tr><th>Approximate Payments:</th>
            <td><button onclick="caluclate();">Calculate</button><td>
        </tr>
        <tr><td>Monthly Payment:</td>
            <td>$<span class="output" id="payment"></span></td>
        </tr>   
        <tr><td>Total payment:</td>
            <td>$<span class="output" id="total"></span></td>
        </tr> 
        <tr><td>Total Interest:</td>
            <td>$<span class="output" id="totalinterrest"></span></td>
        </tr>
        <tr><th>Sponsors:</th><td colspan=2>
            Apply for your loans with fine lenders:
            <div id="lenders"></div></td></tr>
      </table>

CSS

.output{
    font-wight:bold;
}
#payment{
    text-decoartion:underline;
}
#graph {
    border: solid black 1px;
}