# amortization-system

> This module allows you to calculate repayments for loans. It is based on the German, American, Direct and French amortization systems.

Latest version **1.0.3** (published 2020-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install amortization-system
pnpm add amortization-system
yarn add amortization-system
bun add amortization-system
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2020-12-03 |
| First published | 2020-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | hcdestroyer, elcusanero |
| Keywords | amortization, payment-methods, credit, payments, js, javascript, nodejs |

## Links

- npm: https://www.npmjs.com/package/amortization-system
- Repository: https://github.com/ElCusanero/amortization-system
- Homepage: https://github.com/ElCusanero/amortization-system#readme
- Issues: https://github.com/ElCusanero/amortization-system/issues
- npm.io page: https://npm.io/package/amortization-system

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) ^2.29.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-12-03
- 1.0.1 — 2020-11-25

## README

# AMORTIZATION SYSTEMS

This module allows you to calculate repayments for loans. It is based on the German, American, Direct and French amortization systems.

## Installation

```bash
npm install amortization-system
```

## Usage

```javascript
const AmortizationSystem = require('amortization-system')

const credit = {
    borrowed_capital: 10000,
    how_many_payments: 180,
    interest: 2.25,
    date_start: Date(),
    borrowed_type: 'month',
    borrowed_time: 180
}

console.table(
    AmortizationSystem.Aleman(
        credit.borrowed_capital, credit.how_many_payments,
        credit.interest, credit.date_start,
        credit.borrowed_type, credit.borrowed_time
    )
)

console.table(
    AmortizationSystem.Americano(
        credit.borrowed_capital, credit.how_many_payments,
        credit.interest, credit.date_start,
        credit.borrowed_type, credit.borrowed_time
    )
)

console.table(
    AmortizationSystem.Directo(
        credit.borrowed_capital, credit.how_many_payments,
        credit.interest, credit.date_start,
        credit.borrowed_type, credit.borrowed_time
    )
)

console.table(
    AmortizationSystem.Frances(
        credit.borrowed_capital, credit.how_many_payments,
        credit.interest, credit.date_start,
        credit.borrowed_type, credit.borrowed_time
    )
)

```

## License
[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/amortization-system · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
