按一个普通程序员8000的月收入算就是1800的社保金,而且要延迟到65岁退休,我过完年就是30岁,这笔账和余额宝比对一下,我顿时明白了
fuckShebao: function (req, res, next) {
//每个月1800的社保
var day = (1800 / 30);
//交15年交满
var full_days = 365 * 15;
//到65岁退休
var old_days= 365*35;
var i = 0;
var p = 0;
var total = 0;
//时光飞逝
while (i < full_days) {
total = total day;
i ;
total = total (total * 1.16 / 10000);
}
//15年后是那么多钱
var year15 = total;
//不再交了,继续放利息(余额宝)
if (i == full_days) {
while (p < (old_days-full_days)) {
total = total (total * 1.16 / 10000);
p ;
}
}
//结算出来:
var all = (total "").toMoney();
year15 = (year15 "").toMoney();
var re = {all: all, year15: year15};
res.json(re);
}
结果:
{
"all": "1070226.48",
"year15": "458919.44"
}
结果15年后可以有45.8w,而到退休的时候65岁可以有107w,还是不交了!
哎,啥都不说了,某党坑爹啊