raymon1 / financial

Financial is a Rust crate that contains collection of finance calculations memicking some of Excel Financial Functions interface.
https://docs.rs/crate/financial
14 stars 5 forks source link

Financial

GitHub CircleCI crates.io docs.rs

Financial is a Rust crate that contains collection of finance calculations mimicking some of Excel Financial Functions interface. you can find the crate here

Usage

use financial;

let npv = financial::npv(0.1, &[-1000., 500., 500., 500.]);
assert_eq!(npv, 221.29635953828267);

What makes this crate different

It supports both periodic and scheduled computation for IRR and NPV.

IRR and NPV functions are faster since powers are pre-computed iteratively instead of using power function multiple times. Take this with a grain of salt since no benches tests are offered at the moment.

Supported Functions

NaiveDate Interface

Future Work

Testing

Contribution

Buy Me A Coffee