The social security should not pay, oneself calculate a bill Nodejs code

Source: Internet
Author: User

fuckshebao: function  (Req, res, next)  {         //1800 per month for Social Security         var day =  (1800 /          //15 Full          Var full_days = 365 * 15;        //retired at age 65         var old_days= 365*35;         var i = 0;        var p =  0;        var total = 0;         //Time Flies         while  (i <  Full_days)  {            total =  Total + day;            i++;             total = total +  (total * 1.16 / 10000); &NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;}&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;&NBSP;//15 years later, it was so much money.         var year15 = total;         //no longer paid, continue to put interest (balance treasure)         if  (i ==  full_days)  {            while  (p  <  (old_days-full_days)  {                 total = total +  (total * 1.16 / 10000);                 p++;             }        }         //settled out:        var all =    (total+ ""). Tomoney ();        year15 =  (year15 +   ""). Tomoney ();         var re = {all: all,  year15: year15};        res.json (RE);     }


The social security should not pay, oneself calculate a bill Nodejs code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.