Forma Simples de Gerar uma Tabela SAC
Project description
tabela-sac
Install
pip install tabela_sac
How to use
from tabela_sac.core import SACCalculator
sac = SACCalculator(valor_financiado=200000,
prazo=360,
taxa_juros=0.01)
tabela = sac.tabela()
tabela
<style scoped>
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
Parcela | Juros | Amortização | Valor da Parcela | Saldo Devedor | |
---|---|---|---|---|---|
0 | 1 | 2000.00 | 555.56 | 2555.56 | 199444.44 |
1 | 2 | 1994.44 | 555.56 | 2550.00 | 198888.89 |
2 | 3 | 1988.89 | 555.56 | 2544.44 | 198333.33 |
3 | 4 | 1983.33 | 555.56 | 2538.89 | 197777.78 |
4 | 5 | 1977.78 | 555.56 | 2533.33 | 197222.22 |
... | ... | ... | ... | ... | ... |
355 | 356 | 27.78 | 555.56 | 583.33 | 2222.22 |
356 | 357 | 22.22 | 555.56 | 577.78 | 1666.67 |
357 | 358 | 16.67 | 555.56 | 572.22 | 1111.11 |
358 | 359 | 11.11 | 555.56 | 566.67 | 555.56 |
359 | 360 | 5.56 | 555.56 | 561.11 | 0.00 |
360 rows × 5 columns
CLI Interface
The nbdev cli system uses fastcore.script
to build command line
interfaces. For further information, go to
https://fastcore.fast.ai/script.html
$ gerar_tabela_sac --help
usage: gerar_tabela_sac [-h] [--path PATH] valor_financiado prazo taxa_juros
Gera a tabela SAC para o valor financiado, prazo e taxa de juros informados.
positional arguments:
valor_financiado Valor financiado
prazo Prazo em meses
taxa_juros Taxa de juros ao mês (ex: 0.01 para uma taxa de 1% ao mês)
optional arguments:
-h, --help show this help message and exit
--path PATH (default: .)
Usage:
$ gerar_tabela_sac 100000 360 0.01
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tabela-sac-1.0.0.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for tabela_sac-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5e0aed3fa91af3e87eb20d5bd81369b664cc1e17e6129066816ceac5ad07be5 |
|
MD5 | e75de38d4bf4cc5c91afe9c42fd4038e |
|
BLAKE2b-256 | 8d0a417ebd004594edbfe9b09d79a0dbc6ad3df7aba2c84a17e8fc606ce1d9f5 |