Code
viewof pre_tax_savings = Inputs.number(
[0, 200000000],
{value: 40000, step: 500, label: "Pre-tax Savings:"}
);
viewof RRSP_match = Inputs.range(
[0, 1],
{value: 0, step: .01, label: "RRSP Match:"}
);
viewof max_RRSP_match = Inputs.number(
[0, 100000],
{value: 100000, step: 100, label: "Max RRSP Match"}
);
viewof RESP_match = Inputs.number(
[0, 1],
{value: .2, step: .01, label: "RESP Match:"}
);
viewof max_RESP_match = Inputs.number(
[0, 100000],
{value: 7200, step: 100, label: "Max RESP Match:"}
);
viewof annual_return = Inputs.range(
[0, 2],
{value: .07, step: .005, label: "Annual Return:"}
);
viewof years = Inputs.range(
[1, 100],
{value: 10, step: 1, label: "Years Invested:"}
);
viewof current_tax = Inputs.range(
[0, 1],
{value: .3, step: .01, label: "Current Income Tax Rate:"}
);
viewof future_tax = Inputs.range(
[0, 1],
{value: .3, step: .01, label: "Future Income Tax Rate:"}
);
viewof ben_future_tax = Inputs.range(
[0, 1],
{value: 0, step: .01, label: "Beneficiary's Future Income Tax Rate:"}
);