Crates.io | amortize-rs |
lib.rs | amortize-rs |
version | 0.1.0 |
source | src |
created_at | 2024-10-10 13:10:22.26094 |
updated_at | 2024-10-10 13:10:22.26094 |
description | A loan amortization calculator library |
homepage | |
repository | https://github.com/ahmed-deftoner/amortize-rs |
max_upload_size | |
id | 1403795 |
size | 13,628 |
A Rust library for calculating loan amortization schedules.
use amortization_calculator::Amortization;
use chrono::NaiveDate;
fn main() {
let loan = Amortization::new(
280350.0, // Principal
3.5, // APR
60, // Periods (5 years)
Some(NaiveDate::from_ymd_opt(2024, 1, 1).unwrap())
);
println!("{}", loan);
}