Calcular o ROI
O termo ROI é uma sigla para a expressão em inglês “Return over Investment”, ou “Retorno sobre Investimento”. Por meio desse indicador, é possível saber quanto dinheiro a empresaestá ganhando (ou perdendo) em cada investimento realizado.
investimento=float(input('Indique o Investimento Inicial:'))
retorno =float(input('Indique o Retorno do Investimento:'))
roi = ((retorno - investimento)/investimento)*100
if roi==0:
print('O Retorno foi igual ao Valor do Investimento')
elif roi<0:
print('O Retorno sobre Investimento foi de {:.2f}%'
''.format(roi))
print('O Retorno foi inferior ao Valor do '
'Investimento. '
'Foi um mau Investimento.')
else:
print('O Retorno sobre o Investimento foi de {:.2f}%'
''.format(roi))
Comentários
Enviar um comentário