Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/epilif3sotnas/debt-profit
A calculator to see if it is profitable to get debt to invest.
https://github.com/epilif3sotnas/debt-profit
debt financial investment zig
Last synced: 28 days ago
JSON representation
A calculator to see if it is profitable to get debt to invest.
- Host: GitHub
- URL: https://github.com/epilif3sotnas/debt-profit
- Owner: epilif3sotnas
- License: apache-2.0
- Created: 2024-08-19T18:56:15.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-01T07:32:56.000Z (about 1 month ago)
- Last Synced: 2024-12-01T08:33:03.655Z (about 1 month ago)
- Topics: debt, financial, investment, zig
- Language: Zig
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. |nbsp| unicode:: 0xA0
:trim:About debt-profit
=================This little calculator was done with the goal of learning Zig programming language and also to create a calculator to check if a certain loan is profitable when invested against investing an amount of X every month.
|nbsp|
Requirements
############**Zig => build.zig.zon**
|nbsp|
Run
###Commands to run the project:
.. code-block:: bash
cd {PATH_REPOSITORY};
zig build run -- both --debt-amount=100 --duration=12 --apy=10.2 --interest=12.2;
zig build run -- investment --starting-amount=10 --duration=12 --apy=10.2 --contribution=100;
zig build run -- debt --amount=100 --duration=12 --interest=12.2;|nbsp|
.. list-table:: Investment Command Args
:header-rows: 1* - Arg
- Data Type
* - starting-amount
- f64
* - contribution
- f64
* - duration
- f32
* - apy
- u16.. list-table:: Debt Command Args
:header-rows: 1* - Arg
- Data Type
* - amount
- f64
* - interest
- f32
* - duration
- u16.. list-table:: Both Command Args
:header-rows: 1* - Arg
- Data Type
* - starting-amount
- f64
* - contribution
- f64
* - duration
- f32
* - apy
- u16
* - amount
- f64
* - interest
- f32
* - duration
- u16|nbsp|
License
#######Licensed under Apache-2.0 license.