Re: [請益] 公教優惠儲蓄的問題
請先參考這篇
https://www.fubon.com/banking/document/news/TW/deposit_interest.pdf
每日利息之計算方式如下:1,000,000 元*0.8%*1/365 =21.9178081
元,四捨五入至小數點第五位後每日利息相當於 21.91781 元。假設計息期間首月 31 日、次月 28 日,則該 2 個月之利息分別為:
(1)21.91781*31=679.45211,四捨五入至元,即 679 元整;
(2) 21.91781*28=613.69868,四捨五入至元,即 614 元整。
將code start 到 code end 放入此站 然後點網站中第一列的Run看結果
https://www.onlinegdb.com/online_c++_compiler
如圖
https://www.mediafire.com/view/qd3cp0zeb081c67/fubon_continue.png/file
修改成可連算6年 可以改 i < 6 to i < 20 連算20年 但注意行規上限是70萬
//code start
#include <iostream>
#include <stdio.h>
#include <math.h>
int main()
{
double half_interest0;
double half_interest1;
double accumulation = 0.0;
double principal_interest = 0.0;
//Round to five decimal places
accumulation += round((principal_interest + 10000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 20000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 28;
accumulation += round((principal_interest + 30000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 40000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 30;
accumulation += round((principal_interest + 50000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 60000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 20;
half_interest0 = accumulation;
accumulation = 0.0;
accumulation += round((principal_interest + half_interest0 + 60000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 10; //6/21 pay interest
accumulation += round((principal_interest + half_interest0 + 70000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 80000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 90000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 100000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 110000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 120000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 20;
half_interest1 = accumulation;
accumulation = 0.0;
accumulation +=
round((principal_interest+half_interest0+half_interest1+120000) * 1.595 / 100/ 365 * 100000.0)/100000.0 * 11; //12/21 pay interest
std::cout << "Result0: " << half_interest0 + half_interest1 << std::endl;
principal_interest += 120000 + half_interest0 + half_interest1;
accumulation += round((principal_interest + 10000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 20000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 28;
accumulation += round((principal_interest + 30000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 40000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 30;
accumulation += round((principal_interest + 50000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 60000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 20;
half_interest0 = accumulation;
accumulation = 0.0;
accumulation += round((principal_interest + half_interest0 + 60000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 10; //6/21 pay interest
accumulation += round((principal_interest + half_interest0 + 70000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 80000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 90000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 100000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 110000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 120000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 20;
half_interest1 = accumulation;
accumulation = 0.0;
accumulation +=
round((principal_interest+half_interest0+half_interest1+120000) * 1.595 / 100/ 365 * 100000.0)/100000.0 * 11; //12/21 pay interes
std::cout << "Result1: " << half_interest0 + half_interest1 << std::endl;
principal_interest += 120000 + half_interest0 + half_interest1 ;
accumulation += round((principal_interest + 10000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 20000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 28;
accumulation += round((principal_interest + 30000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 40000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 30;
accumulation += round((principal_interest + 50000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 60000) * 1.595 / 100 / 365 *
100000.0)/100000.0 * 20;
half_interest0 = accumulation;
accumulation = 0.0;
accumulation += round((principal_interest + half_interest0 + 60000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 10; //6/21 pay interest
accumulation += round((principal_interest + half_interest0 + 70000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 80000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 90000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 100000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 110000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 120000) * 1.595
/ 100 / 365 * 100000.0)/100000.0 * 20;
half_interest1 = accumulation;
accumulation = 0.0;
accumulation +=
round((principal_interest+half_interest0+half_interest1+120000) * 1.595 / 100/ 365 * 100000.0)/100000.0 * 11; //12/21 pay interes
std::cout << "Result2: " << half_interest0 + half_interest1 << std::endl;
std::cout << std::endl;
principal_interest = 0.0;
accumulation = 0.0;
for (int i = 0; i<5; i++)
{
accumulation += round((principal_interest + 10000) * 1.595 / 100 /
365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 20000) * 1.595 / 100 /
365*100000.0)/100000.0 * 28;
accumulation += round((principal_interest + 30000) * 1.595 / 100 /
365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 40000) * 1.595 / 100 /
365*100000.0)/100000.0 * 30;
accumulation += round((principal_interest + 50000) * 1.595 / 100 /
365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + 60000) * 1.595 / 100 /
365*100000.0)/100000.0 * 20;
//
half_interest0 = accumulation;
accumulation = 0.0;
accumulation += round((principal_interest + half_interest0 + 60000) *1.595 / 100 / 365*100000.0)/100000.0 * 10; /*6/21 pay interest*/
accumulation += round((principal_interest + half_interest0 + 70000) *1.595 / 100 / 365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 80000) *1.595 / 100 / 365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 90000) *1.595 / 100 / 365*100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 100000) *1.595 / 100 / 365*100000.0)/100000.0 * 31;
accumulation += round((principal_interest + half_interest0 + 110000) *1.595 / 100 / 365*100000.0)/100000.0 * 30;
accumulation += round((principal_interest + half_interest0 + 120000) *1.595 / 100 / 365*100000.0)/100000.0 * 20;
//
half_interest1 = accumulation;
accumulation = 0.0;
accumulation += round((principal_interest + half_interest0 +
half_interest1 + 120000) * 1.595 / 100 / 365 * 100000.0)/100000.0 * 11;
/*12/21 pay interest*/
std::cout << "year total interest: " << half_interest0 + half_interest1<< std::endl;
principal_interest += 120000 + half_interest0 + half_interest1;
std::cout << "principal_interest: " << principal_interest << std::endl <<
std::endl;
}
getchar();
}
//code end
大家再請更正
定期儲蓄存款二年期
調整日期 固定 機動
2023/03/28 1.5550 1.5950
2022/12/20 1.4300 1.4700
2022/09/27 1.3050 1.3450
2022/06/21 1.1800 1.2200
2022/03/22 1.0550 1.0950
※ 引述《fatalfeel2 (風在動)》之銘言:
: 公教 定期儲蓄存款 半年給息 利率1.595%
: 附件為細算公式 至少問了六位行員
: 如果不說 你一定不知道Trick在那裡
: 那一家的我不想說了
: 最後得知 它是單利 同時 以int(integer整數去除小數點) 來算
: 你可以心算出第一年前兩個月是 0
: 無言...........................
: 公教人員 你們辛苦了
: ////////////////////////////細算公式///////////////
: Result0: 858 第一年利
: Result1: 2801 第二年利
: Result2: 4760 第三年利
: 將code start 到 code end 放入此站 然後點網站中第一列的Run看結果
: https://www.onlinegdb.com/online_c++_compiler
: 如圖
: https://www.mediafire.com/view/yvgqp550i4017zx/bank_interest.png/file
: //code start
: #include <iostream>
: #include <stdio.h>
: int main()
: {
: double half_interest0;
: double half_interest1;
: double result = 0.0;
: result += ((int)(10000 * 1.595 / 100 / 365)) * 31;
: result += ((int)(20000 * 1.595 / 100 / 365)) * 28;
: result += ((int)(30000 * 1.595 / 100 / 365)) * 31;
: result += ((int)(40000 * 1.595 / 100 / 365)) * 30;
: result += ((int)(50000 * 1.595 / 100 / 365)) * 31;
: result += ((int)(60000 * 1.595 / 100 / 365)) * 20;
: half_interest0 = result;
: result += ((int)((60000 + half_interest0) * 1.595 / 100 / 365)) * 10;
: /*6/21 pay interest*/
: result += ((int)((70000 + half_interest0) * 1.595 / 100 / 365)) * 31;
: result += ((int)((80000 + half_interest0) * 1.595 / 100 / 365)) * 31;
: result += ((int)((90000 + half_interest0) * 1.595 / 100 / 365)) * 30;
: result += ((int)((100000 + half_interest0) * 1.595 / 100 / 365)) * 31;
: result += ((int)((110000 + half_interest0) * 1.595 / 100 / 365)) * 30;
: result += ((int)((120000 + half_interest0) * 1.595 / 100 / 365)) * 20;
: half_interest1 = result;
: result += ((int)((120000 + half_interest1) * 1.595 / 100 / 365)) * 11;
: /*12/21 pay interest*/
: std::cout << "Result0: " << result << std::endl;
: result = 0.0;
: result += ((int)((120000 + 858 + 10000) * 1.595 / 100 / 365)) * 31;
: result += ((int)((120000 + 858 + 20000) * 1.595 / 100 / 365)) * 28;
: result += ((int)((120000 + 858 + 30000) * 1.595 / 100 / 365)) * 31;
: result += ((int)((120000 + 858 + 40000) * 1.595 / 100 / 365)) * 30;
: result += ((int)((120000 + 858 + 50000) * 1.595 / 100 / 365)) * 31;
: result += ((int)((120000 + 858 + 60000) * 1.595 / 100 / 365)) * 20;
: half_interest0 = result;
: result += ((int)((120000 + 858 + 60000 + half_interest0) * 1.595 / 100 /: 365)) * 10; /*6/21 pay interest*/
: result += ((int)((120000 + 858 + 70000 + half_interest0) * 1.595 / 100 /: 365)) * 31;
: result += ((int)((120000 + 858 + 80000 + half_interest0) * 1.595 / 100 /: 365)) * 31;
: result += ((int)((120000 + 858 + 90000 + half_interest0) * 1.595 / 100 /: 365)) * 30;
: result += ((int)((120000 + 858 + 100000 + half_interest0) * 1.595 / 100 /: 365)) * 31;
: result += ((int)((120000 + 858 + 110000 + half_interest0) * 1.595 / 100 /: 365)) * 30;
: result += ((int)((120000 + 858 + 120000 + half_interest0) * 1.595 / 100 /: 365)) * 20;
: half_interest1 = result;
: result += ((int)((120000 + 858 + 120000 + half_interest1) * 1.595 / 100 /: 365)) * 11; /*12/21 pay interest*/
: std::cout << "Result1: " << result << std::endl;
: half_interest0 = 0.0;
: result = 0.0;
: result += ((int)((240000 + 858 + 2801 + 10000) * 1.595 / 100 / 365)) * 31;: result += ((int)((240000 + 858 + 2801 + 20000) * 1.595 / 100 / 365)) * 28;: result += ((int)((240000 + 858 + 2801 + 30000) * 1.595 / 100 / 365)) * 31;: result += ((int)((240000 + 858 + 2801 + 40000) * 1.595 / 100 / 365)) * 30;: result += ((int)((240000 + 858 + 2801 + 50000) * 1.595 / 100 / 365)) * 31;: result += ((int)((240000 + 858 + 2801 + 60000) * 1.595 / 100 / 365)) * 20;: half_interest0 = result;
: result += ((int)((240000 + 858 + 2801 + 60000 + half_interest0) * 1.595 /: 100 / 365)) * 10; /*6/21 pay interest*/
: result += ((int)((240000 + 858 + 2801 + 70000 + half_interest0) * 1.595 /: 100 / 365)) * 31;
: result += ((int)((240000 + 858 + 2801 + 80000 + half_interest0) * 1.595 /: 100 / 365)) * 31;
: result += ((int)((240000 + 858 + 2801 + 90000 + half_interest0) * 1.595 /: 100 / 365)) * 30;
: result += ((int)((240000 + 858 + 2801 + 100000 + half_interest0) * 1.595: / 100 / 365)) * 31;
: result += ((int)((240000 + 858 + 2801 + 110000 + half_interest0) * 1.595: / 100 / 365)) * 30;
: result += ((int)((240000 + 858 + 2801 + 120000 + half_interest0) * 1.595: / 100 / 365)) * 20;
: half_interest1 = result;
: result += ((int)((240000 + 858 + 2801 + 120000 + half_interest1) * 1.595: / 100 / 365)) * 11; /*12/21 pay interest*/
: std::cout << "Result2: " << result << std::endl;
: return 0;
: }
: //code end
--
先幫推,不過這算活存類預備金概念,比定存薛也還行
70
[情報] 栢麗廳Monthly Pass暢遊30環遊券$16800晶華酒店栢麗廳Monthly Pass暢遊30環遊券 展場限定一套16800限量100套 栢麗廳自助餐三十天內隨你吃,限本人使用,購買時會拍照,每天可任選時段吃一餐 早中晚下午茶擇一餐,換算下來平均一餐56042
[情報] 美帳九月份PS Plus 會員遊戲陣容Your PlayStation Plus Monthly Games for September are: Saints Row Black Desert - Traveler Edition Generation Zero Full details: play.st/3R0PXMr38
[情報] 美帳11月份 PS PLUS會員遊戲陣容Your PlayStation Plus Monthly Games for November: Nioh 2 Lego Harry Potter Collection Heavenly Bodies Full details: play.st/3TUtSOh21
[影音] 白虎(NU'EST) - Tiny Riot (cover)白虎(NU'EST) - Tiny Riot | NU Monthly 10月 cover cr. NU'EST --18
Re: [新聞] NFLX訂閱數首衰 擬對共用帳戶加錢串流或者電子購物網站 其實都可以搭配網路流量分析去看他們衰退來預測財報 以Netflix為例 網路流量衰退的很明顯 剛好跟美國解封時間有吻合 我是使用Similarweb插件 所以可以看到六個月的網路流量 網頁版非付費版會少很多資訊 針對Netflix 過去六個月流量 摘錄如下10
[討論] League Pass 價錢與時間疑問大家好, 之前有跟到一年290元, 但因為一年的時間即將要到了,打算要續訂, 目前看到網站上可以訂購Season跟Monthly, 我不理解的是不管是Season還是Monthly價格都是17.99美金,7
[情報] ACPP+ 國外可以超過三年【情報來源】 原網址: 【情報內容】 APPLE 開始准許特定國家的 Mac 或是 iDevice 可以超過三年保固1
Re: [問題]請問美國花旗網銀辦Fixed Deposits根據網路上提的規定是三年要更新一次. : 2.關於Checking和Saving帳戶,好像都不能0元,要不然90天後會被關閉?最少要存多少? 一般人通常會放到免帳管費的程度, 起碼是 USD $1500 或 $10000 以上, 我不確定是要放 Checking 還是總和1
[影音] NC.A MONTHLY MEDLEY (JUNE ver.)[NC.A] MONTHLY MEDLEY (JUNE ver.) │K-POP MEDLEY cr. Sso Live@YouTube 00:00 TWICE - MORE & MORE 01:18 IZ*ONE - 幻想童話(Secret Story of the Swan)- 作者: naticom (踢踢~) 看板: iOS 標題: [情報] ACPP+ 國外可以超過三年 時間: Thu Apr 22 13:10:32 2021 【情報來源】 原網址: