CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Financial Forecasting in Python

Afficher le cours

Instructions

  • 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.

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

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

# Calculate and print net profit
net_profit = ____ - ____
print("The net profit is {}.".format(____))
Modifier et exécuter le code