繳費六年,固定利率
我自己也有買的一張保單
目前都已經繳費完畢
解約金以每年2.25%增加
是我最重要的緊急備用金
就依據建議書上寫的數字為準
首年度3%折扣(無轉帳折扣1%)
續年度4%折扣
其實以信用卡繳費,
折扣不只如此而已
但商品已停售
本文不為計算
如何最大化保單利益
以下是當時使用Excel
計算的6~10年IRR:
本篇也要改用Python計算新光增有利IRR
寫的逗點分隔檔同建議書的現金流:
程式碼如下:


VS code輸出結果:

寫入的csv檔:

跟先前使用Excel計算的IRR
除了8年IRR差了0.0001%
其他到小數點下4位都沒差別
新增第21行,可以算總報酬率:

VS code輸出結果:

csv檔:

22/11/4
新增解約金增加率:

輸出結果:

推薦hahow線上學習python: https://igrape.net/30afN


![Python 讀取 DOCX 圖片關聯:qn+find/findall 與 XPath 的實戰對照 from lxml import etree ; from docx.oxml.ns import qn; lxml.etree._Element.findall( f”.//{ qn(‘a:blip’) }” ) ; .get( qn(“r:embed”) ) #獲取 屬性名 ‘r:embed’ 的 屬性值(如: ‘rId4’) ; lxml.etree._Element.xpath( “//a:blip/@r:embed”, namespaces = NS) #/@r:embed = 獲取 屬性名 ‘r:embed’ 的 屬性值(如: ‘rId4’),使用.findall() 要先.findall()獲取List[_Element],再迴圈_Element.get()獲取屬性值, .xpath() 第一個參數path 使用”//a:blip/@r:embed” ,可直接獲取屬性值(List[str]如: [‘rId4’, ‘rId5’]) ; 如何對docx真實移除圖片瘦身? Python 讀取 DOCX 圖片關聯:qn+find/findall 與 XPath 的實戰對照 from lxml import etree ; from docx.oxml.ns import qn; lxml.etree._Element.findall( f”.//{ qn(‘a:blip’) }” ) ; .get( qn(“r:embed”) ) #獲取 屬性名 ‘r:embed’ 的 屬性值(如: ‘rId4’) ; lxml.etree._Element.xpath( “//a:blip/@r:embed”, namespaces = NS) #/@r:embed = 獲取 屬性名 ‘r:embed’ 的 屬性值(如: ‘rId4’),使用.findall() 要先.findall()獲取List[_Element],再迴圈_Element.get()獲取屬性值, .xpath() 第一個參數path 使用”//a:blip/@r:embed” ,可直接獲取屬性值(List[str]如: [‘rId4’, ‘rId5’]) ; 如何對docx真實移除圖片瘦身?](https://i2.wp.com/savingking.com.tw/wp-content/uploads/2025/11/20251119130848_0_3fbf6b.png?quality=90&zoom=2&ssl=1&resize=350%2C233)









近期留言