Skip to content

Commit

Permalink
add zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuiantw1212 committed May 8, 2024
1 parent e8b6ed0 commit eed9401
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/calculator/retirement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
:disabled="isFormDisabled">
<el-radio v-for="(item, key) in config.retirementQuartile" :value="key + 1">{{
item.label
}}</el-radio>
}}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
Expand Down Expand Up @@ -407,9 +407,10 @@ async function drawRetirementAssetChart(propagate = false) {
const pmt = annutalAnnuity - inflatedAnnualExpense
fv = Math.floor(pv * pensionIrr + pmt)
fv = Math.max(0, fv)
pensionData.push([0, Math.floor(fv)])
const calculatedYear = props.config.currentYear + n + i
labels.push(calculatedYear)
pensionData.push([0, Math.floor(fv)])
pv = fv
}
// 繪圖
Expand Down

0 comments on commit eed9401

Please sign in to comment.