diff --git a/components/calculator/parenting.vue b/components/calculator/parenting.vue index 9ca30c4..28505c6 100644 --- a/components/calculator/parenting.vue +++ b/components/calculator/parenting.vue @@ -3,7 +3,7 @@ - + @@ -58,6 +58,19 @@ @change="calculateParenting($event)" /> + + + {{ Number(parenting.disabledInsurance).toLocaleString() }} / 年 + + + + + + + {{ config.portfolioIRR[investment.allocationETF] }} % @@ -90,6 +103,9 @@ 主計總處統計專區 家庭收支調查 統計表 調查報告 平均每戶家庭收支按家庭組織型態別分 +
  • + 假設失能聘僱全職外籍看護,每月費用約30,000,身障生活補助5,065,身障者照顧津貼3,000,勞保失能年金4,000,稅務扣除額用稅率5%計算約1.6萬,合理覆蓋失能者的支出,故失能保額直接用家庭支出計算即可。 +
  • @@ -205,6 +221,7 @@ const sizeType = computed(() => { function calculateParenting(options: any = { propagate: true }) { const { propagate = true } = options calculateHeadCount() + calculateDiabledInsurance() debounce(() => { drawParentingChart(propagate) })(propagate) @@ -224,6 +241,21 @@ function calculateHeadCount() { } parenting.value.headCount = headCount } +function calculateDiabledInsurance() { + const { firstBornYear, secondBornYear, independantAge, childAnnualExpense, lifeInsurance, } = parenting.value + const { monthlyContribution } = props.spouse + let disabledInsurance = -monthlyContribution * 12 + if (firstBornYear) { + disabledInsurance += childAnnualExpense + } + if (secondBornYear) { + disabledInsurance += childAnnualExpense + } + disabledInsurance /= 10000 + disabledInsurance = Math.floor(disabledInsurance) + disabledInsurance = Math.max(0, disabledInsurance) + parenting.value.disabledInsurance = disabledInsurance * 10000 +} function drawParentingChart(propagate = true) { // 繪製圖 const { inflationRate } = props.config