<%@ page import="java.util.*"%> <%@ page import="java.text.*"%> Estimate of Taxes and Charges to Estate Estate Taxes and Charges

<% String principalResidenceVal = ""; String condoVal = ""; String condoCost = ""; String rentalVal = ""; String rentalCost = ""; String businessVal = ""; String businessCost = ""; String usVal = ""; String usCost = ""; String stocksVal = ""; String stocksCost = ""; String gicVal = ""; String rrspVal = ""; String mortVal = ""; String addMort = ""; String lessIns = ""; String percOne = "3"; double percOneTemp = 0; String percTwo = "45"; double percTwoTemp = 0; String percThree = "45"; double percThreeTemp = 0; double principalResidenceValTemp = 0.0D; double condoValTemp = 0.0D; double condoCostTemp = 0.0D; double condoSumTemp = 0.0D; int condoSum = 0; double rentalValTemp = 0.0D; double rentalCostTemp = 0.0D; double rentalSumTemp = 0.0D; int rentalSum = 0; double businessValTemp = 0.0D; double businessCostTemp = 0.0D; double businessSumTemp = 0.0D; int businessSum = 0; double usValTemp = 0.0D; double usCostTemp = 0.0D; double usSumTemp = 0.0D; int usSum = 0; double stocksValTemp = 0.0D; double stocksCostTemp = 0.0D; double stocksSumTemp = 0.0D; int stocksSum = 0; double gicValTemp = 0.0D; double rrspValTemp = 0.0D; double mortValTemp = 0.0D; double valAssetsSumTemp = 0.0D; int valAssetsSum = 0; double valSumTemp = 0.0D; int valSum = 0; double totalCapTemp = 0.0D; int totalCap = 0; double totalAssetsTemp = 0.0D; int totalAssets = 0; double rrspValForTaxTemp = 0.0D; int rrspValForTax = 0; double totalIncomeTaxSavingsTemp = 0.0D; int totalIncomeTaxSavings = 0; double newTotalCapTemp = 0.0D; int newTotalCap = 0; double totalIncomeTaxCapitalTemp = 0.0D; int totalIncomeTaxCapital = 0; double addMortTemp = 0.0D; double lessInsTemp = 0.0D; double totalTemp = 0.0D; int total = 0; %> <% if (request.getParameter("submit") != null) { int z; principalResidenceVal = request.getParameter("principalResidenceVal"); z = 0; z = principalResidenceVal.indexOf(','); if (z > 0) { principalResidenceVal = new StringBuffer(principalResidenceVal).deleteCharAt(z).toString();} condoVal = request.getParameter("condoVal"); z = 0; z = condoVal.indexOf(','); if (z > 0) { condoVal = new StringBuffer(condoVal).deleteCharAt(z).toString();} condoCost = request.getParameter("condoCost"); z = 0; z = condoCost.indexOf(','); if (z > 0) { condoCost = new StringBuffer(condoCost).deleteCharAt(z).toString();} rentalVal = request.getParameter("rentalVal"); z = 0; z = rentalVal.indexOf(','); if (z > 0) { rentalVal = new StringBuffer(rentalVal).deleteCharAt(z).toString();} rentalCost = request.getParameter("rentalCost"); z = 0; z = rentalCost.indexOf(','); if (z > 0) { rentalCost = new StringBuffer(rentalCost).deleteCharAt(z).toString();} businessVal = request.getParameter("businessVal"); z = 0; z = businessVal.indexOf(','); if (z > 0) { businessVal = new StringBuffer(businessVal).deleteCharAt(z).toString();} businessCost = request.getParameter("businessCost"); z = 0; z = businessCost.indexOf(','); if (z > 0) { businessCost = new StringBuffer(businessCost).deleteCharAt(z).toString();} usVal = request.getParameter("usVal"); z = 0; z = usVal.indexOf(','); if (z > 0) { usVal = new StringBuffer(usVal).deleteCharAt(z).toString();} usCost = request.getParameter("usCost"); z = 0; z = usCost.indexOf(','); if (z > 0) { usCost = new StringBuffer(usCost).deleteCharAt(z).toString();} stocksVal = request.getParameter("stocksVal"); z = 0; z = stocksVal.indexOf(','); if (z > 0) { stocksVal = new StringBuffer(stocksVal).deleteCharAt(z).toString();} stocksCost = request.getParameter("stocksCost"); z = 0; z = stocksCost.indexOf(','); if (z > 0) { stocksCost = new StringBuffer(stocksCost).deleteCharAt(z).toString();} gicVal = request.getParameter("gicVal"); z = 0; z = gicVal.indexOf(','); if (z > 0) { gicVal = new StringBuffer(gicVal).deleteCharAt(z).toString();} rrspVal = request.getParameter("rrspVal"); z = 0; z = rrspVal.indexOf(','); if (z > 0) { rrspVal = new StringBuffer(rrspVal).deleteCharAt(z).toString();} mortVal = request.getParameter("mortVal"); z = 0; z = mortVal.indexOf(','); if (z > 0) { mortVal = new StringBuffer(mortVal).deleteCharAt(z).toString();} addMort = request.getParameter("addMort"); z = 0; z = addMort.indexOf(','); if (z > 0) { addMort = new StringBuffer(addMort).deleteCharAt(z).toString();} lessIns = request.getParameter("lessIns"); z = 0; z = lessIns.indexOf(','); if (z > 0) { lessIns = new StringBuffer(lessIns).deleteCharAt(z).toString();} percOne = request.getParameter("percOne"); percTwo = request.getParameter("percTwo"); percThree = request.getParameter("percThree"); if (request.getParameter("error") != null) { %>

Invalid amount:

<% } else { // Check fields for 'doubles' String errMsg = ""; try { if (!principalResidenceVal.equals("")) { principalResidenceValTemp = Double.parseDouble(principalResidenceVal);} } catch(Throwable theException){ errMsg = errMsg + "
  • Principal Residence";} try { if (!condoVal.equals("")) { condoValTemp = Double.parseDouble(condoVal);} if (!condoCost.equals("")) { condoCostTemp = Double.parseDouble(condoCost);} } catch(Throwable theException){ errMsg = errMsg + "
  • Cottage/Condo, rec. property";} try { if (!rentalVal.equals("")) { rentalValTemp = Double.parseDouble(rentalVal);} if (!rentalCost.equals("")) { rentalCostTemp = Double.parseDouble(rentalCost);} } catch(Throwable theException){ errMsg = errMsg + "
  • Rental or Other Real Estate";} try { if (!businessVal.equals("")) { businessValTemp = Double.parseDouble(businessVal);} if (!businessCost.equals("")) { businessCostTemp = Double.parseDouble(businessCost);} } catch(Throwable theException){ errMsg = errMsg + "
  • Business/Farm Interest(s)";} try { if (!usVal.equals("")) { usValTemp = Double.parseDouble(usVal);} if (!usCost.equals("")) { usCostTemp = Double.parseDouble(usCost);} } catch(Throwable theException){ errMsg = errMsg + "
  • US Stocks ($CAD)";} try { if (!stocksVal.equals("")) { stocksValTemp = Double.parseDouble(stocksVal);} if (!stocksCost.equals("")) { stocksCostTemp = Double.parseDouble(stocksCost);} } catch(Throwable theException){ errMsg = errMsg + "
  • Stocks/Bonds/Mutual Funds";} try { if (!gicVal.equals("")) { gicValTemp = Double.parseDouble(gicVal);} } catch(Throwable theException){ errMsg = errMsg + "
  • GIC, Term Deposits (non-RSP)";} try { if (!rrspVal.equals("")) { rrspValTemp = Double.parseDouble(rrspVal);} } catch(Throwable theException){ errMsg = errMsg + "
  • RRSP's, RRIFs";} try { if (!mortVal.equals("")) { mortValTemp = Double.parseDouble(mortVal);} } catch(Throwable theException){ errMsg = errMsg + "
  • Mortgages";} try { if (!addMort.equals("")) { addMortTemp = Double.parseDouble(addMort);} } catch(Throwable theException){ errMsg = errMsg + "
  • Mortgages and other debt (4) not life insured";} try { if (!lessIns.equals("")) { lessInsTemp = Double.parseDouble(lessIns);} } catch(Throwable theException){ errMsg = errMsg + "
  • Any permanent life insurance payable to estate";} percOneTemp = Double.parseDouble(percOne); percTwoTemp = Double.parseDouble(percTwo); percThreeTemp = Double.parseDouble(percThree); // Reprint with error message if (!errMsg.equals("")) { %> <% } // Calculation Part try { condoSumTemp = condoValTemp - condoCostTemp; //condoSum = NumberFormat.getCurrencyInstance().format(condoSumTemp); Double condoSumD = new Double(condoSumTemp +0.5); condoSum = condoSumD.intValue(); rentalSumTemp = rentalValTemp - rentalCostTemp; //rentalSum = NumberFormat.getCurrencyInstance().format(rentalSumTemp); Double rentalSumD = new Double(rentalSumTemp +0.5); rentalSum = rentalSumD.intValue(); businessSumTemp = businessValTemp - businessCostTemp; //businessSum = NumberFormat.getCurrencyInstance().format(businessSumTemp); Double businessSumD = new Double(businessSumTemp +0.5); businessSum = businessSumD.intValue(); usSumTemp = usValTemp - usCostTemp; //usSum = NumberFormat.getCurrencyInstance().format(usSumTemp); Double usSumD = new Double(usSumTemp +0.5); usSum = usSumD.intValue(); stocksSumTemp = stocksValTemp - stocksCostTemp; //stocksSum = NumberFormat.getCurrencyInstance().format(stocksSumTemp); Double stocksSumD = new Double(stocksSumTemp +0.5); stocksSum = stocksSumD.intValue(); valAssetsSumTemp = principalResidenceValTemp + condoValTemp + rentalValTemp + businessValTemp + usValTemp + stocksValTemp + gicValTemp + rrspValTemp; //valAssetsSum = NumberFormat.getCurrencyInstance().format(valAssetsSumTemp); Double valAssetsSumD = new Double(valAssetsSumTemp +0.5); valAssetsSum = valAssetsSumD.intValue(); valSumTemp = valAssetsSumTemp - mortValTemp; //valSum = NumberFormat.getCurrencyInstance().format(valSumTemp); Double valSumD = new Double(valSumTemp +0.5); valSum = valSumD.intValue(); totalCapTemp = condoSumTemp + rentalSumTemp + businessSumTemp + usSumTemp + stocksSumTemp; //totalCap = NumberFormat.getCurrencyInstance().format(totalCapTemp); Double totalCapTempD = new Double(totalCapTemp +0.5); totalCap = totalCapTempD.intValue(); totalAssetsTemp = (valSumTemp*percOneTemp)/100; //totalAssets = NumberFormat.getCurrencyInstance().format(totalAssetsTemp); Double totalAssetsD = new Double(totalAssetsTemp +0.5); totalAssets = totalAssetsD.intValue(); if ((rrspVal.equals("")) || (rrspVal == null)) { rrspValForTaxTemp = 0;} else { rrspValForTaxTemp = rrspValTemp;} //rrspValForTax = NumberFormat.getCurrencyInstance().format(rrspValForTaxTemp); Double rrspValForTaxD = new Double(rrspValForTaxTemp +0.5); rrspValForTax = rrspValForTaxD.intValue(); totalIncomeTaxSavingsTemp = (rrspValTemp*percTwoTemp)/100; //totalIncomeTaxSavings = NumberFormat.getCurrencyInstance().format(totalIncomeTaxSavingsTemp); Double totalIncomeTaxSavingsD = new Double(totalIncomeTaxSavingsTemp +0.5); totalIncomeTaxSavings = totalIncomeTaxSavingsD.intValue(); newTotalCapTemp = totalCapTemp*0.5; //newTotalCap = NumberFormat.getCurrencyInstance().format(newTotalCapTemp); Double newTotalCapD = new Double(newTotalCapTemp +0.5); newTotalCap = newTotalCapD.intValue(); totalIncomeTaxCapitalTemp = (newTotalCapTemp*percThreeTemp)/100; //totalIncomeTaxCapital = NumberFormat.getCurrencyInstance().format(totalIncomeTaxCapitalTemp); Double totalIncomeTaxCapitalD = new Double(totalIncomeTaxCapitalTemp +0.5); totalIncomeTaxCapital = totalIncomeTaxCapitalD.intValue(); totalTemp = totalAssetsTemp + totalIncomeTaxSavingsTemp + totalIncomeTaxCapitalTemp + addMortTemp - lessInsTemp; //total = NumberFormat.getCurrencyInstance().format(totalTemp); Double totalD = new Double(totalTemp +0.5); total = totalD.intValue(); } catch(Throwable theException){ theException.printStackTrace(); } } } %>
      We invite you to take a moment to estimate the taxes and charges your estate will face upon your death. Some classes of assets will require that you know their original cost so the capital gains can be determined. If you are looking for ways to minimize the effect of these taxes and charges, you may wish to contact one of our Estate Planning Advisors or contact us directly.

    If you would like to receive a customized analysis from an Estate Planning Advisor or if you have any questions, please call our head office toll free number at 1-877-877-9154 .

     

    Assets Current Value Cost Cap. Gain
      Principal Residence N/A N/A
      Cottage/Condo, rec. property $<%= condoSum %>
      Rental or Other Real Estate $<%= rentalSum %>
      Business/Farm Interest(s) $<%= businessSum %>
      US Stocks ($CAD) $<%= usSum %>
      Stocks/Bonds/Mutual Funds $<%= stocksSum %>
      GIC, Term Deposits (non-RSP) N/A N/A
      RSPs/RIFs N/A N/A
      Total Value of Assets: $<%= valAssetsSum %>  
      Total Capital Gains:   $<%= totalCap%>
    Debts Value
      Mortgages, Credit Cards, Other Debts.
     
      Total Estate Value
      Total Value of Assets - Debts
    $<%= valSum %>
      Mortgages and other debt not life insured:
      Increases "Total Expenses Against Estate"
      Total Value of permanent life insurance:
      Reduces "Total Expenses Against Estate"
     
       
     
      ADMINISTRATION FEES - Probate, Legal, Executor
      TOTAL ASSETS:
      Net of mortgages and other debts
    $<%= valSum%> x % = $<%= totalAssets%>
     
      INCOME TAX ON REGISTERED SAVINGS
      TOTAL RSP/RIFS:
      Total value of registered funds
       are taxable
    $<%= rrspValForTax%> x %
    Marginal Tax Rate at Death
    = $<%= totalIncomeTaxSavings%>
     
      INCOME TAX ON CAPITAL GAINS
      TAXABLE CAPITAL GAINS:
      Total Capital Gains x 50%
    $<%= newTotalCap%> x %
    Marginal Tax Rate at Death
    = $<%= totalIncomeTaxCapital%>
     
      Total Expenses Against Estate: $<%= total %>