Software Para Calculo de Retorno de Investimento Software Portugues Br

4
Pot (kW) Pólos Carcaça Dados do Motor PREMIUM Rendimento (%) Aquisição (... Dados do Motor Existente Rendimento (%) Aquisição (... Dados de Consumo e Operação R$/kWh Horas / Dia Dias / Ano Análise do Retorno de Investimento Economia (kWh/ano) : Economia (R$/ano) : Investimento Total ... Retorno de Investimento (An... Pense Verde O valor de aquisição deste motor é 0,00% da energia que ele consome no ano. Considerando uma vida útil de 20 anos, o valor de aquisição deste motor equivale a 0,00% da energia que ele consome. Em 0,00 dias este motor consumirá em energia o seu valor de aquisição. E Estado do Motor Pot (cv) Idade do Motor Utilizar Plano de Troca

description

calculo motor rendimento

Transcript of Software Para Calculo de Retorno de Investimento Software Portugues Br

Calculo Retorno de Investimento

Rendimentos PremiumcvkW2P4P6P8PCarcaaRend (%)CarcaaRend (%)CarcaaRend (%)CarcaaRend (%)10.757182.58082.8L90S81.5L90L74.91.51.18084.6L8083.0L90S81.5100L81.621.5L8085.7L90S86.5100L85.5112M84.532.2L90S86.5L90L87.5L100L85.5132M86.543L90L88.5100L88.0L112M88.0132M86.653.7100L88.6L100L89.0132S89.0132M/L86.764.5112M89.5112M89.5132S89.0160M88.57.55.5112M89.7L112M91.0132M89.5160M89.8107.5132S90.6132S92.0132M/L89.7160L90.612.59.2132M91.2132M92.0160M91.0180M91.01511132M91.5132M/L92.4160M91.8180L91.32015160M92.2160M93.4160L92.2180L91.62518.5160M92.8160L93.8180L93.1200L92.13022160L93.2180M94.0200L93.6225S/M92.44030200M93.4200M94.4200L94.1225S/M93.55037200L94.0200L94.6225S/M94.2250S/M93.66045225S/M94.3225S/M95.1250S/M94.5250S/M93.67555225S/M94.6225S/M95.4250S/M94.7280S/M94.310075250S/M95.0250S/M95.5280S/M95.0280S/M94.512592280S/M95.3280S/M95.6280S/M95.3315S/M94.9150110280S/M95.5280S/M95.8315S/M95.8315S/M95.0175132315S/M95.6315S/M96.2315S/M95.8200150315S/M95.8315S/M96.2315S/M95.9250185315S/M96.1315S/M96.3

Attribute VB_Name = "Plan2"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Plan1"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = TrueAttribute VB_Control = "Label1, 1, 0, MSForms, Label"Attribute VB_Control = "Label2, 3, 2, MSForms, Label"Attribute VB_Control = "cmbPol, 4, 3, MSForms, ComboBox"Attribute VB_Control = "Label3, 5, 4, MSForms, Label"Attribute VB_Control = "txtCarcaca, 6, 5, MSForms, TextBox"Attribute VB_Control = "Label4, 7, 6, MSForms, Label"Attribute VB_Control = "Label5, 8, 7, MSForms, Label"Attribute VB_Control = "txtRend, 9, 8, MSForms, TextBox"Attribute VB_Control = "Label6, 10, 9, MSForms, Label"Attribute VB_Control = "txtAquisicao, 11, 10, MSForms, TextBox"Attribute VB_Control = "Label7, 12, 11, MSForms, Label"Attribute VB_Control = "txtCustoEnergia, 27, 12, MSForms, TextBox"Attribute VB_Control = "cmbPotCV, 534, 13, MSForms, ComboBox"Attribute VB_Control = "Label25, 533, 14, MSForms, Label"Attribute VB_Control = "Label11, 26, 15, MSForms, Label"Attribute VB_Control = "Label8, 25, 16, MSForms, Label"Attribute VB_Control = "Label9, 19, 17, MSForms, Label"Attribute VB_Control = "txtOldRend, 20, 18, MSForms, TextBox"Attribute VB_Control = "Label10, 21, 19, MSForms, Label"Attribute VB_Control = "txtOldAquisicao, 22, 20, MSForms, TextBox"Attribute VB_Control = "Label12, 28, 21, MSForms, Label"Attribute VB_Control = "txtHoras, 29, 22, MSForms, TextBox"Attribute VB_Control = "Label13, 30, 23, MSForms, Label"Attribute VB_Control = "txtDias, 31, 24, MSForms, TextBox"Attribute VB_Control = "Label14, 38, 25, MSForms, Label"Attribute VB_Control = "Label15, 39, 26, MSForms, Label"Attribute VB_Control = "txtEconkWh, 40, 27, MSForms, TextBox"Attribute VB_Control = "Label16, 41, 28, MSForms, Label"Attribute VB_Control = "txtEconReais, 42, 29, MSForms, TextBox"Attribute VB_Control = "Label17, 43, 30, MSForms, Label"Attribute VB_Control = "txtInvest, 44, 31, MSForms, TextBox"Attribute VB_Control = "Label18, 45, 32, MSForms, Label"Attribute VB_Control = "txtRSCI, 46, 33, MSForms, TextBox"Attribute VB_Control = "Label19, 51, 34, MSForms, Label"Attribute VB_Control = "lblPenseVerde1, 52, 35, MSForms, Label"Attribute VB_Control = "lblPenseVerde2, 53, 36, MSForms, Label"Attribute VB_Control = "lblPenseVerde3, 54, 37, MSForms, Label"Attribute VB_Control = "txtCO2, 67, 38, MSForms, TextBox"Attribute VB_Control = "Label20, 75, 39, MSForms, Label"Attribute VB_Control = "Label21, 76, 40, MSForms, Label"Attribute VB_Control = "txtArvores, 91, 41, MSForms, TextBox"Attribute VB_Control = "Label22, 92, 42, MSForms, Label"Attribute VB_Control = "Label23, 93, 43, MSForms, Label"Attribute VB_Control = "cmbTipo, 150, 44, MSForms, ComboBox"Attribute VB_Control = "Label24, 151, 45, MSForms, Label"Attribute VB_Control = "txtPotkW, 535, 46, MSForms, TextBox"Attribute VB_Control = "chkPlano, 805, 47, MSForms, CheckBox"Attribute VB_Control = "Label26, 637, 48, MSForms, Label"Attribute VB_Control = "txtAno, 638, 49, MSForms, TextBox"Dim vlRendPremium As DoubleDim vlRendOld As DoubleDim vlAquisicaoPremium As DoubleDim vlAquisicaoOld As DoubleDim vlCustoEnergia As DoubleDim nrHorasDia As IntegerDim nrDiasAno As IntegerDim vlEconomiakWh As DoubleDim vlEconomiaReais As DoubleDim vlInvestimento As DoubleDim vlRSCI As DoubleDim vlPotencia As DoubleDim vlConsPremium As DoubleDim vlConsDiarioPremium As DoubleDim linhaPot As IntegerDim vlIdadeMotor As IntegerDim vlDescPlanoTroca As Double

Private Sub chkPlano_Click()

If chkPlano.Value = True Then vlDescPlanoTroca = 0.88 CalcularRetornoElse vlDescPlanoTroca = 1 CalcularRetornoEnd If

End Sub

Private Sub cmbPol_Click()

txtCarcaca.Text = Plan2.Cells(linhaPot, CInt(cmbPol.Text) + 1)txtRend.Text = Plan2.Cells(linhaPot, CInt(cmbPol.Text) + 2)

CalcularRetornotxtAquisicao.Activate

End Sub

Private Sub cmbPotCV_Click()

cmbPol.ClearFor i = 3 To 26 If CStr(Plan2.Cells(i, "A")) = cmbPotCV.Text Then txtPotkW.Text = Plan2.Cells(i, "B") linhaPot = i If Plan2.Cells(i, "D") Empty Then cmbPol.AddItem 2 End If If Plan2.Cells(i, "F") Empty Then cmbPol.AddItem 4 End If If Plan2.Cells(i, "H") Empty Then cmbPol.AddItem 6 End If If Plan2.Cells(i, "J") Empty Then cmbPol.AddItem 8 End If Exit For End IfNext i

End Sub

Private Sub cmbTipo_Change()

If cmbTipo.Text = "Nova Instalao" Then txtOldAquisicao.Text = Empty txtOldAquisicao.Visible = True Label10.Visible = True txtAno.BackColor = &HC0C0C0 txtAno.Text = 2011 txtAno.Enabled = False txtOldRend.Text = Empty vlAquisicaoOld = EmptyElseIf cmbTipo.Text = "Reposio com Rendimento Estimado" Then txtOldAquisicao.Text = Empty txtOldAquisicao.Visible = False Label10.Visible = False txtAno.BackColor = &HFFFFFF txtAno.Text = Empty txtAno.Enabled = True txtOldRend.Text = Empty vlAquisicaoOld = EmptyElseIf cmbTipo.Text = "Reposio" Then txtOldAquisicao.Text = Empty txtOldAquisicao.Visible = False Label10.Visible = False txtAno.BackColor = &HC0C0C0 txtAno.Text = Empty txtAno.Enabled = False txtOldRend.Text = Empty vlAquisicaoOld = EmptyEnd If

End Sub

Private Sub txtAno_Change()

On Error Resume Next

vlIdadeMotor = CInt(txtAno.Text)If Year(Now) - vlIdadeMotor < 2000 Then txtOldRend.Text = Format(CDbl(txtRend.Text) - 0.004 * vlIdadeMotor * CDbl(txtRend.Text), "0.0")Else txtOldRend.Text = Format(CDbl(txtRend.Text) - 0.002 * CDbl(txtRend.Text), "0.0")End If

End Sub

Private Sub txtAno_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then txtCustoEnergia.ActivateEnd If

End Sub

Private Sub txtAquisicao_Change()

CalcularRetorno

End Sub

Private Sub txtAquisicao_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then txtAquisicao.Text = Format(txtAquisicao.Text, "#,##0.00") txtOldRend.ActivateEnd If

End Sub

Private Sub txtCustoEnergia_Change()

CalcularRetorno

End Sub

Private Sub txtCustoEnergia_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then txtHoras.ActivateEnd If

End Sub

Private Sub txtDias_Change()

On Error Resume Next

If CInt(txtDias.Text) > 365 Then MsgBox "O valor deve ser entre 1 e 365 dias", vbCritical, "Dias de Fundionamento" txtDias.Text = 365 Exit SubEnd If

CalcularRetorno

End Sub

Private Sub txtHoras_Change()

On Error Resume Next

If CInt(txtHoras.Text) > 24 Then MsgBox "O valor deve ser entre 1 e 24 horas", vbCritical, "Horas de Fundionamento" txtHoras.Text = 24 Exit SubEnd If

CalcularRetorno

End Sub

Private Sub txtHoras_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then txtDias.ActivateEnd If

End Sub

Private Sub txtOldAquisicao_Change()

CalcularRetorno

End Sub

Private Sub txtOldAquisicao_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then txtOldAquisicao.Text = Format(txtOldAquisicao.Text, "#,##0.00") txtCustoEnergia.ActivateEnd If

End Sub

Private Sub txtOldRend_Change()

CalcularRetorno

End Sub

Private Sub txtOldRend_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)

If KeyCode = 13 Then If txtOldAquisicao.Visible = True Then txtOldAquisicao.Activate Else txtCustoEnergia.Activate End IfEnd If

End Sub

Function CalcularRetorno()

On Error Resume Next

'Transferencia dos valores para as variaveisvlRendPremium = CDbl(txtRend.Text)vlRendOld = CDbl(txtOldRend.Text)vlAquisicaoPremium = CDbl(txtAquisicao.Text)vlAquisicaoOld = CDbl(txtOldAquisicao.Text)vlCustoEnergia = CDbl(txtCustoEnergia.Text)nrHorasDia = CInt(txtHoras.Text)nrDiasAno = CInt(txtDias.Text)vlPotencia = CDbl(txtPotkW.Text)

'Calculo de Economia de EnergiavlEconomiakWh = vlPotencia * ((100 / vlRendOld) - (100 / vlRendPremium)) * nrHorasDia * nrDiasAnotxtEconkWh.Text = Format(vlEconomiakWh, "#,###,###")vlEconomiaReais = vlCustoEnergia * vlEconomiakWhtxtEconReais.Text = Format(vlEconomiaReais, "#,###,##0.00")

'Calculo do InvestimentovlInvestimento = vlAquisicaoPremium * vlDescPlanoTroca - vlAquisicaoOldtxtInvest.Text = Format(vlInvestimento, "#,###,##0.00")

'Calculo do RSCIvlRSCI = vlInvestimento / vlEconomiaReaistxtRSCI.Text = Format(vlRSCI, "0.00")

'Textos PENSE VERDEvlConsPremium = vlPotencia * (100 / vlRendPremium) * nrHorasDia * nrDiasAno * vlCustoEnergialblPenseVerde1.Caption = "O valor de aquisio deste motor " & Format(100 * vlAquisicaoPremium / vlConsPremium, "0.00") & "% da energia que ele consome no ano."

lblPenseVerde2.Caption = "Considerando uma vida til de 20 anos, o valor de aquisio deste motor equivale a " & Format((100 * vlAquisicaoPremium / vlConsPremium) / 20, "0.00") & "% da energia que ele consome."

vlConsDiarioPremium = vlPotencia * (100 / vlRendPremium) * nrHorasDia * vlCustoEnergialblPenseVerde3.Caption = "Em " & Format(vlAquisicaoPremium / vlConsDiarioPremium, "0.00") & " dias este motor consumir em energia o seu valor de aquisio."

'Economia de CO2txtCO2.Text = Format(vlEconomiakWh * 504 / 1000, "#,##0.00")

txtArvores.Text = CInt((6.32 * vlEconomiakWh * 504 / 1000) / 1000)

End Function

Attribute VB_Name = "EstaPasta_de_trabalho"Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Private Sub Workbook_Open()

Plan1.cmbTipo.ClearPlan1.cmbTipo.AddItem "Nova Instalao"Plan1.cmbTipo.AddItem "Reposio com Rendimento Estimado"Plan1.cmbTipo.AddItem "Reposio"

Plan1.cmbPotCV.ClearFor i = 3 To 26 Plan1.cmbPotCV.AddItem Plan2.Cells(i, "A")Next i

Plan1.chkPlano.Value = FalsevlDescPlanoTroca = 1

End Sub