Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
investment-math
Advanced tools
A node.js package to solve investment calculations.
Calculate a compound interest of a investment with constant deposits.
Example:
var investmentMath = require('investment-math')
investmentMath.calculateCompoundInterest({
frequentDeposit: 1000,
initialAmount: 10000,
interestRate: 0.5,
investmentDuration: 6,
interestRateInterval: 'monthly',
investmentDurationInterval: 'monthly',
})
// {
// monthlyEarnings: [
// {
// monthEarnings: 49.99999999999818,
// monthValue: 11049.999999999998,
// month: 2
// },
// ...
// ],
// investmentValue: 16000,
// totalEarnings: 379.2769726907718,
// totalValue: 16379.276972690772
// }
Calculate value of a current asset at a future date based on an assumed rate of growth
var investmentMath = require('investment-math')
let presentValue = 10000
let rate = 0.8
let time = 12
investmentMath.futureValue(presentValue, rate, time)
// 11003.386937161464
Feel free to add issues with bugs or ideas. Any pull requests are very welcome!
FAQs
A node.js package to solve investment calculations.
The npm package investment-math receives a total of 1 weekly downloads. As such, investment-math popularity was classified as not popular.
We found that investment-math demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.