Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

econom

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

econom

Economic formulas

  • 0.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

# 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 }

Keywords

FAQs

Package last updated on 19 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc