amortize-rs

Crates.ioamortize-rs
lib.rsamortize-rs
version0.1.0
sourcesrc
created_at2024-10-10 13:10:22.26094
updated_at2024-10-10 13:10:22.26094
descriptionA loan amortization calculator library
homepage
repositoryhttps://github.com/ahmed-deftoner/amortize-rs
max_upload_size
id1403795
size13,628
Ahmed Nadeem (ahmed-deftoner)

documentation

README

Amortization Calculator

A Rust library for calculating loan amortization schedules.

Features

  • Calculate monthly payment amounts
  • Generate complete amortization schedules
  • Track principal and interest payments

Usage

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);
}
Commit count: 4

cargo fmt