ComeçarComece de graça

Calculating net profit

The net profit includes all the other costs (and all other income) that may incur or earn that is not directly related to the product. For example the salary of the accountant who prepares your invoices, the advertising budget, travel expenses, etc.

So, how do we calculate this?

We start by setting a list for all the items that we want to include in the net profit calculation and calling the list "other operating expenses" or "opex". To keep it simple we will not go into any tax or exceptional expenses or income. The simplified calculation is:

\(Net\,Profit = Gross\,Profit - Other\,Operating\,Expenses\)

The gross_profit (gross profit) variable has been set for you.

Este exercício faz parte do curso

Financial Forecasting in Python

Ver curso

Instruções do exercício

  • Add the appropriate variables into the opex list: admin, travel, training, marketing, insurance.
  • Print the resultant list.
  • Calculate the net profit as the gross profit minus the total operational expenses.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Create and print the opex list
opex = [____, ____, ____, ____, ____]
print(____)

# Calculate and print net profit
net_profit = ____ - ____
print("The net profit is {}.".format(____))
Editar e executar o código