var adviceStr = 'Given your AGI, tax filing and employment status, '
var contributionBy = 'None'
if ( filingStatus == 'S' )
{
if ( deduction > 0 )
{
contributionBy = "You"
adviceStr += "<b>you can contribute up to " + numToDollars( deduction ) + "</b> into a tax-deductible IRA."
}
else
{
adviceStr += "<b>you cannot take a deduction</b> for contributions to an IRA."
}
}
else if ( filingStatus == 'J' )
{
if ( deduction > 0 )
{
contributionBy = "You and Your Spouse"
adviceStr += "<b>you and your spouse can contribute up to " + numToDollars( deduction ) + "</b> into a tax-deductible IRA."
}
else
{
adviceStr += "<b>you and your spouse cannot take a deduction</b> for contributions to an IRA."
}
}
else if ( filingStatus == 'X' )
{
if ( deduction > 0 )
{
if ( spouseDeduction > 0 )
{
contributionBy = "You and Your Spouse"
adviceStr += "<b>you can contribute up to " + numToDollars( deduction ) + "</b> into a tax-deductible IRA. "
adviceStr += "Likewise, <b>your spouse can contribute up to " + numToDollars( spouseDeduction ) + "</b>."
}
else
{
contributionBy = "You"
adviceStr += "<b>you can contribute up to " + numToDollars( deduction ) + "</b> into a tax-deductible IRA."
adviceStr += " However, <b>your spouse cannot take a deduction</b> for contributions into an IRA."
}
}
else
{
if ( spouseDeduction > 0 )
{
contributionBy = "Spouse"
adviceStr += "<b>you cannot take a deduction</b> for contributions into a tax-deductible IRA,"
adviceStr += " but <b>your spouse can contribute up to " + numToDollars( spouseDeduction ) + "</b>."
}
else
{
adviceStr += "<b>neither you nor your spouse can take a deduction</b> for contributions into a tax-deductible IRA."
}
}
}
var paymentstr = ''
if ( payment > 0 )
{
paymentstr = "<br><br>Based on your eligibility, the rate of return and the number of years you plan to contribute, "
if ( sto.status96 == 'S' )
{
paymentstr += "you will have " + numToDollars( totalamount ) + " in your IRA at the end of this period."
}
else
{
paymentstr += "you and your spouse will have " + numToDollars( totalamount ) + " in your IRA at the end of this period."
}
paymentstr += " This assumes you will not withdraw any of your IRA funds before age 59 1/2. If you withdraw before then, you will be subject to a 10 percent penalty, plus any monies withdrawn will be subject to taxes as regular income. The number cited is before any taxes are assessed."