National Poetry Month

    econom

    0.2.6 • Public • Published

    # ECONOM #

    Econom is module consisting of some economic formulas ... :)

    Uses:

    #!javascript
    
    var econom=require('econom')
    //to display future value worth of 10000 for 15 percent for 5 years
    console.log(econom.future_when_present(10000,15,5));
    

    other functions:

    future_when_present(present_value,interest,no_year)

    present_when_future(future_value,interest,no_year)

    future_when_annual(annual_value,interest,no_year)

    present_when_annual(annual_value,interest,no_year)

    annual_when_future(future_value,interest,no_year)

    annual_when_present(present_value,interest,no_year)

    present_worth(init_invest,annual_value,interest,no_year,salvage_value)

    future_worth(init_invest,annual_value,interest,no_year,salvage_value)

    annual_worth(init_invest,annual_value,interest,no_year,salvage_value)

    Cost calculation:

    input:

    #!javascript
    
    var obj={"direct_material":10.5,
    "indirect_material":20.21,
    "direct_labor":15.66,
    "indirect_labor":25.456,
    "direct_expenses":20.651,
    "indirect_expenses":30.21}
    
    econom.cost(obj)
    
    

    output:

    #!json
    
    { materialCost: 30.71,
      laborCost: 41.116,
      expenses: 50.861000000000004,
      primeCost: 46.811,
      overheadCost: 75.876,
      totalCost: 122.68700000000001 }
    
    

    Install

    npm i econom

    DownloadsWeekly Downloads

    2

    Version

    0.2.6

    License

    ISC

    Last publish

    Collaborators

    • sajanshakya129