Skip to main content

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)

Uploaded Source

Built Distribution

tabela_sac-1.0.0-py3-none-any.whl (8.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page