|
|
<!DOCTYPE html> |
|
|
<html lang="pt-BR"> |
|
|
<head> |
|
|
<meta charset="UTF-8" /> |
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
|
|
<title>Relatório de Simulação</title> |
|
|
<style> |
|
|
|
|
|
body { |
|
|
font-family: Arial, sans-serif; |
|
|
margin: 40px; |
|
|
background: #fff; |
|
|
color: #333; |
|
|
line-height: 1.6; |
|
|
} |
|
|
h1, h2 { |
|
|
color: #007cf0; |
|
|
margin-bottom: 10px; |
|
|
} |
|
|
.grafico { |
|
|
text-align: center; |
|
|
margin: 30px 0; |
|
|
page-break-before: always; |
|
|
page-break-inside: avoid; |
|
|
} |
|
|
.grafico img { |
|
|
max-width: 90%; |
|
|
height: auto; |
|
|
display: block; |
|
|
margin: 0 auto; |
|
|
page-break-inside: avoid; |
|
|
border: 1px solid #ccc; |
|
|
padding: 10px; |
|
|
background-color: #fafafa; |
|
|
} |
|
|
table { |
|
|
width: auto; |
|
|
margin-left: auto; |
|
|
margin-right: auto; |
|
|
border-collapse: collapse; |
|
|
margin-top: 20px; |
|
|
font-size: 0.95em; |
|
|
page-break-inside: auto; |
|
|
} |
|
|
th, td { |
|
|
border: 1px solid #ccc; |
|
|
padding: 8px 12px; |
|
|
text-align: center; |
|
|
vertical-align: middle; |
|
|
page-break-inside: avoid; |
|
|
} |
|
|
th { |
|
|
background-color: #f0f0f0; |
|
|
font-weight: bold; |
|
|
} |
|
|
.parametros { |
|
|
margin-bottom: 30px; |
|
|
padding: 15px; |
|
|
background: #f9fbff; |
|
|
border-left: 5px solid #007cf0; |
|
|
} |
|
|
.parametros p { |
|
|
margin: 6px 0; |
|
|
font-size: 1em; |
|
|
} |
|
|
.destaque { |
|
|
font-weight: bold; |
|
|
font-size: 1.05em; |
|
|
margin-top: 30px; |
|
|
padding: 15px; |
|
|
background-color: #f7f9fc; |
|
|
border-left: 6px solid #007cf0; |
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); |
|
|
} |
|
|
.tabela { |
|
|
margin-top: 30px; |
|
|
page-break-inside: avoid; |
|
|
} |
|
|
</style> |
|
|
</head> |
|
|
<body> |
|
|
<h1>Relatório de Simulação de Investimentos</h1> |
|
|
|
|
|
<div class="parametros"> |
|
|
<h2>Parâmetros Utilizados</h2> |
|
|
<p><strong>Capital Inicial:</strong> R$ {{ '{:,.2f}'.format(capital).replace(',', 'X').replace('.', ',').replace('X', '.') }}</p> |
|
|
<p><strong>Retorno mensal do Studio:</strong> {{ studio_ret }}%</p> |
|
|
<p><strong>Valorização anual do Imóvel:</strong> {{ valorizacao }}%</p> |
|
|
<p><strong>Lucro anual da Franquia:</strong> R$ {{ '{:,.2f}'.format(franquia_ret).replace(',', 'X').replace('.', ',').replace('X', '.') }}</p> |
|
|
<p><strong>Retorno anual em Ações:</strong> {{ acoes_ret }}%</p> |
|
|
<p><strong>Retorno anual Renda Fixa:</strong> {{ renda_fixa }}%</p> |
|
|
<p><strong>Inflação anual esperada:</strong> {{ inflacao }}%</p> |
|
|
</div> |
|
|
|
|
|
<div class="grafico"> |
|
|
<h2>Gráfico de Evolução dos Investimentos</h2> |
|
|
<img src="data:image/png;base64,{{ grafico }}" alt="Gráfico de Investimento" /> |
|
|
</div> |
|
|
|
|
|
<div class="destaque"> |
|
|
Destaque: O investimento com maior valor corrigido ao final de {{ df.Ano.max() }} anos foi <strong>{{ investimento_mais_valorizado }}</strong>, totalizando aproximadamente R$ {{ '{:,.2f}'.format(valor_mais_alto).replace(',', 'X').replace('.', ',').replace('X', '.') }}. |
|
|
</div> |
|
|
|
|
|
<div class="tabela"> |
|
|
<h2>Tabela de Resultados Corrigidos</h2> |
|
|
{{ tabela | safe }} |
|
|
</div> |
|
|
</body> |
|
|
</html> |
|
|
|
|
|
|