VII. Aplicações: ciências, economia e otimização
50. Economia, finanças e seguros
Os cálculos financeiros e económicos estão no ecrã inicial, na secção «Aplicações», área Economia: juros por dias (30E/360, ACT/360, ACT/365), uma letra de câmbio e o seu desconto, uma renda do que foi poupado (temporária, diferida, perpétua), juros mistos, poupança com depósito inicial e juros anuais, um empréstimo com amortização constante, juros de um depósito (simples, compostos, contínuos, com imposto e inflação), poupança regular, empréstimo com plano de amortização e TAEG, obrigação, investimento (VAL, TIR, período de recuperação), conversão de moedas, ponto crítico, maximização do lucro, equilíbrio de mercado, modelo de Leontief e cadeias de Markov, e ainda matemática atuarial – tábuas de mortalidade, seguro de vida, rendas, provisões e seguro não vida com bónus-malus.
O investimento em empréstimos P2P calcula o valor da carteira (saldo na conta e capital em aberto) mês a mês: os depósitos são investidos em valores inteiros por empréstimo, os empréstimos são pagos em prestações iguais, a plataforma cobra uma taxa de originação e uma parte dos juros, as perdas são uma taxa de inadimplência anual; para comparação, uma fórmula fechada com reinvestimento contínuo. Inversamente, encontra o depósito mensal ou o prazo para um valor-alvo.
Os montantes podem estar em qualquer moeda – escolhida no formulário (por omissão, a do país do telemóvel); o cálculo não depende dela. A conversão de moedas usa os câmbios diários do Banco Nacional Checo (em checo ou com o telemóvel configurado na Chéquia) ou as taxas de referência do Banco Central Europeu (nos outros idiomas) e converte qualquer par através de uma moeda comum, mostrando a fonte e a data.
Os montantes numa moeda são escritos segundo o costume da língua da aplicação e da região das definições do telefone (2 431,50 EUR; no Brasil 2.431,50; em inglês 2,431.50), tal como a data da tabela de câmbios.
Os passos mostram as fórmulas, a substituição e os resultados intermédios: a taxa efetiva e a real, o plano de amortização, o valor atual dos fluxos, a receita e o custo marginais como derivadas, os excedentes como integrais, a inversa de Leontief e a distribuição estacionária resolvendo um sistema. A matemática atuarial usa números de comutação; a provisão é mostrada de forma prospetiva e retrospetiva.
Exemplos
model(deposit; find=Kn[one]; K0=100000[one]; p=5[pct]; n=10[one]; d=15[pct]; infl=3[pct]; kind=compound; freq=monthly; cur=CZK)![model(deposit; find=Kn[one]; K0=100000[one]; p=5[pct]; n=10[one]; d=15[pct]; infl=3[pct]; kind=compound; freq=monthly; cur=CZK)](img/eco-deposit.png)
![model(deposit; find=Kn[one]; K0=100000[one]; p=5[pct]; n=10[one]; d=15[pct]; infl=3[pct]; kind=compound; freq=monthly; cur=CZK)](img/eco-deposit-1.png)
![model(deposit; find=Kn[one]; K0=100000[one]; p=5[pct]; n=10[one]; d=15[pct]; infl=3[pct]; kind=compound; freq=monthly; cur=CZK)](img/eco-deposit-2.png)
model(savings; find=S[one]; a=2000[one]; p=3[pct]; n=15[one]; d=15[pct]; timing=due; freq=monthly; cur=CZK)![model(savings; find=S[one]; a=2000[one]; p=3[pct]; n=15[one]; d=15[pct]; timing=due; freq=monthly; cur=CZK)](img/eco-savings.png)
![model(savings; find=S[one]; a=2000[one]; p=3[pct]; n=15[one]; d=15[pct]; timing=due; freq=monthly; cur=CZK)](img/eco-savings-1.png)
![model(savings; find=S[one]; a=2000[one]; p=3[pct]; n=15[one]; d=15[pct]; timing=due; freq=monthly; cur=CZK)](img/eco-savings-2.png)
model(loan; find=a[one]; D=3000000[one]; p=5[pct]; n=25[one]; F=15000[one]; freq=monthly; cur=CZK)![model(loan; find=a[one]; D=3000000[one]; p=5[pct]; n=25[one]; F=15000[one]; freq=monthly; cur=CZK)](img/eco-loan.png)
![model(loan; find=a[one]; D=3000000[one]; p=5[pct]; n=25[one]; F=15000[one]; freq=monthly; cur=CZK)](img/eco-loan-1.png)
![model(loan; find=a[one]; D=3000000[one]; p=5[pct]; n=25[one]; F=15000[one]; freq=monthly; cur=CZK)](img/eco-loan-2.png)
model(savings; find=S[one]; a=1000[one]; K0=20000[one]; p=2[pct]; n=5[one]; timing=due; freq=monthly; credit=annual; cur=CZK)![model(savings; find=S[one]; a=1000[one]; K0=20000[one]; p=2[pct]; n=5[one]; timing=due; freq=monthly; credit=annual; cur=CZK)](img/eco-savings-yearly.png)
![model(savings; find=S[one]; a=1000[one]; K0=20000[one]; p=2[pct]; n=5[one]; timing=due; freq=monthly; credit=annual; cur=CZK)](img/eco-savings-yearly-1.png)
![model(savings; find=S[one]; a=1000[one]; K0=20000[one]; p=2[pct]; n=5[one]; timing=due; freq=monthly; credit=annual; cur=CZK)](img/eco-savings-yearly-2.png)
model(lending; find=V[one]; a=2000[one]; p=8[pct]; f=1[pct]; loss=2[pct]; L=200[one]; M=60[one]; n=10[one]; cur=CZK)![model(lending; find=V[one]; a=2000[one]; p=8[pct]; f=1[pct]; loss=2[pct]; L=200[one]; M=60[one]; n=10[one]; cur=CZK)](img/eco-lending.png)
![model(lending; find=V[one]; a=2000[one]; p=8[pct]; f=1[pct]; loss=2[pct]; L=200[one]; M=60[one]; n=10[one]; cur=CZK)](img/eco-lending-1.png)
![model(lending; find=V[one]; a=2000[one]; p=8[pct]; f=1[pct]; loss=2[pct]; L=200[one]; M=60[one]; n=10[one]; cur=CZK)](img/eco-lending-2.png)
model(loan; find=a[one]; D=1200000[one]; p=5[pct]; n=10[one]; freq=monthly; method=constant; schedule=short; cur=CZK)![model(loan; find=a[one]; D=1200000[one]; p=5[pct]; n=10[one]; freq=monthly; method=constant; schedule=short; cur=CZK)](img/eco-loan-constant.png)
![model(loan; find=a[one]; D=1200000[one]; p=5[pct]; n=10[one]; freq=monthly; method=constant; schedule=short; cur=CZK)](img/eco-loan-constant-1.png)
![model(loan; find=a[one]; D=1200000[one]; p=5[pct]; n=10[one]; freq=monthly; method=constant; schedule=short; cur=CZK)](img/eco-loan-constant-2.png)
model(daycount; find=Kn[one]; K0=50000[one]; p=2[pct]; start=2026-03-15; end=2026-09-20; d=15[pct]; basis=e30; cur=CZK)![model(daycount; find=Kn[one]; K0=50000[one]; p=2[pct]; start=2026-03-15; end=2026-09-20; d=15[pct]; basis=e30; cur=CZK)](img/eco-daycount.png)
![model(daycount; find=Kn[one]; K0=50000[one]; p=2[pct]; start=2026-03-15; end=2026-09-20; d=15[pct]; basis=e30; cur=CZK)](img/eco-daycount-1.png)
![model(daycount; find=Kn[one]; K0=50000[one]; p=2[pct]; start=2026-03-15; end=2026-09-20; d=15[pct]; basis=e30; cur=CZK)](img/eco-daycount-2.png)
model(bill; find=payout[one]; N=100000[one]; dr=6[pct]; start=2026-01-10; end=2026-04-10; basis=act360; cur=CZK)![model(bill; find=payout[one]; N=100000[one]; dr=6[pct]; start=2026-01-10; end=2026-04-10; basis=act360; cur=CZK)](img/eco-bill.png)
![model(bill; find=payout[one]; N=100000[one]; dr=6[pct]; start=2026-01-10; end=2026-04-10; basis=act360; cur=CZK)](img/eco-bill-1.png)
![model(bill; find=payout[one]; N=100000[one]; dr=6[pct]; start=2026-01-10; end=2026-04-10; basis=act360; cur=CZK)](img/eco-bill-2.png)
model(annuity; find=a[one]; PV=2000000[one]; p=3[pct]; n=20[one]; k=5[one]; kind=temporary; timing=ordinary; freq=monthly; cur=CZK)![model(annuity; find=a[one]; PV=2000000[one]; p=3[pct]; n=20[one]; k=5[one]; kind=temporary; timing=ordinary; freq=monthly; cur=CZK)](img/eco-annuity.png)
![model(annuity; find=a[one]; PV=2000000[one]; p=3[pct]; n=20[one]; k=5[one]; kind=temporary; timing=ordinary; freq=monthly; cur=CZK)](img/eco-annuity-1.png)
![model(annuity; find=a[one]; PV=2000000[one]; p=3[pct]; n=20[one]; k=5[one]; kind=temporary; timing=ordinary; freq=monthly; cur=CZK)](img/eco-annuity-2.png)
model(bond; find=price[one]; N=1000[one]; cp=5[pct]; n=5[one]; y=4[pct]; freq=annual; cur=EUR)![model(bond; find=price[one]; N=1000[one]; cp=5[pct]; n=5[one]; y=4[pct]; freq=annual; cur=EUR)](img/eco-bond.png)
![model(bond; find=price[one]; N=1000[one]; cp=5[pct]; n=5[one]; y=4[pct]; freq=annual; cur=EUR)](img/eco-bond-1.png)
![model(bond; find=price[one]; N=1000[one]; cp=5[pct]; n=5[one]; y=4[pct]; freq=annual; cur=EUR)](img/eco-bond-2.png)
model(npv; find=irr[one]; CF=-1000 300 400 500 200[one]; r=10[pct]; cur=EUR)![model(npv; find=irr[one]; CF=-1000 300 400 500 200[one]; r=10[pct]; cur=EUR)](img/eco-npv.png)
![model(npv; find=irr[one]; CF=-1000 300 400 500 200[one]; r=10[pct]; cur=EUR)](img/eco-npv-1.png)
![model(npv; find=irr[one]; CF=-1000 300 400 500 200[one]; r=10[pct]; cur=EUR)](img/eco-npv-2.png)
model(exchange; find=converted[one]; A=100[one]; from=EUR; to=CZK; source=cnb)
model(profit; find=optimum[one]; a=100[one]; b=2[one]; F=200[one]; cv=20[one]; e=0.5[one]; cur=CZK)![model(profit; find=optimum[one]; a=100[one]; b=2[one]; F=200[one]; cv=20[one]; e=0.5[one]; cur=CZK)](img/eco-profit.png)
![model(profit; find=optimum[one]; a=100[one]; b=2[one]; F=200[one]; cv=20[one]; e=0.5[one]; cur=CZK)](img/eco-profit-1.png)
![model(profit; find=optimum[one]; a=100[one]; b=2[one]; F=200[one]; cv=20[one]; e=0.5[one]; cur=CZK)](img/eco-profit-2.png)
model(market; find=equilibrium[one]; a=100[one]; b=2[one]; cs=10[one]; d=3[one]; t=5[one]; cur=CZK)![model(market; find=equilibrium[one]; a=100[one]; b=2[one]; cs=10[one]; d=3[one]; t=5[one]; cur=CZK)](img/eco-market.png)
![model(market; find=equilibrium[one]; a=100[one]; b=2[one]; cs=10[one]; d=3[one]; t=5[one]; cur=CZK)](img/eco-market-1.png)
![model(market; find=equilibrium[one]; a=100[one]; b=2[one]; cs=10[one]; d=3[one]; t=5[one]; cur=CZK)](img/eco-market-2.png)
model(leontief; find=x[one]; A=0.2 0.3 0.1 0.4 0.1 0.2 0.1 0.2 0.3[one]; y=100 200 150[one])![model(leontief; find=x[one]; A=0.2 0.3 0.1 0.4 0.1 0.2 0.1 0.2 0.3[one]; y=100 200 150[one])](img/eco-leontief.png)
![model(leontief; find=x[one]; A=0.2 0.3 0.1 0.4 0.1 0.2 0.1 0.2 0.3[one]; y=100 200 150[one])](img/eco-leontief-1.png)
![model(leontief; find=x[one]; A=0.2 0.3 0.1 0.4 0.1 0.2 0.1 0.2 0.3[one]; y=100 200 150[one])](img/eco-leontief-2.png)
model(markov; find=stationary[one]; P=0.8 0.15 0.05 0.1 0.8 0.1 0.05 0.15 0.8[one])![model(markov; find=stationary[one]; P=0.8 0.15 0.05 0.1 0.8 0.1 0.05 0.15 0.8[one])](img/eco-markov.png)
![model(markov; find=stationary[one]; P=0.8 0.15 0.05 0.1 0.8 0.1 0.05 0.15 0.8[one])](img/eco-markov-1.png)
![model(markov; find=stationary[one]; P=0.8 0.15 0.05 0.1 0.8 0.1 0.05 0.15 0.8[one])](img/eco-markov-2.png)
model(mortality; find=expectancy[one]; x=65[one]; table=female)![model(mortality; find=expectancy[one]; x=65[one]; table=female)](img/ins-mortality.png)
![model(mortality; find=expectancy[one]; x=65[one]; table=female)](img/ins-mortality-1.png)
![model(mortality; find=expectancy[one]; x=65[one]; table=female)](img/ins-mortality-2.png)
model(lifeinsurance; find=premium[one]; x=40[one]; n=20[one]; i=2.5[pct]; S=1000000[one]; product=endowment; payment=annual; table=male; cur=CZK)![model(lifeinsurance; find=premium[one]; x=40[one]; n=20[one]; i=2.5[pct]; S=1000000[one]; product=endowment; payment=annual; table=male; cur=CZK)](img/ins-life.png)
![model(lifeinsurance; find=premium[one]; x=40[one]; n=20[one]; i=2.5[pct]; S=1000000[one]; product=endowment; payment=annual; table=male; cur=CZK)](img/ins-life-1.png)
![model(lifeinsurance; find=premium[one]; x=40[one]; n=20[one]; i=2.5[pct]; S=1000000[one]; product=endowment; payment=annual; table=male; cur=CZK)](img/ins-life-2.png)
model(nonlife; find=stationary[one]; levels=100 90 80 70 60 50[one]; q=10[pct]; mode=bonusmalus; rule=reset; cur=CZK)![model(nonlife; find=stationary[one]; levels=100 90 80 70 60 50[one]; q=10[pct]; mode=bonusmalus; rule=reset; cur=CZK)](img/ins-bonus.png)
![model(nonlife; find=stationary[one]; levels=100 90 80 70 60 50[one]; q=10[pct]; mode=bonusmalus; rule=reset; cur=CZK)](img/ins-bonus-1.png)
![model(nonlife; find=stationary[one]; levels=100 90 80 70 60 50[one]; q=10[pct]; mode=bonusmalus; rule=reset; cur=CZK)](img/ins-bonus-2.png)
Limitações conhecidas
- As tábuas de mortalidade são modelos (Gompertz–Makeham, próximas da população checa); para resultados precisos introduza os seus qₓ de tábuas oficiais.
- Os câmbios são de referência – bancos e casas de câmbio aplicam câmbios e comissões próprios.
- Microeconomia com procura linear e custos quadráticos; ainda não há funções gerais dadas por uma fórmula.
- As convenções não deslocam datas por feriados – os juros contam-se pelos dias entre as datas dadas; o empréstimo não admite amortizações extraordinárias nem mudança de taxa.
- O investimento em empréstimos P2P é uma estimativa com rendimento fixo e taxa de inadimplência constante; não considera a recuperação de dívidas, o pagamento antecipado, o mercado secundário nem os impostos. Não é uma recomendação de investimento.