LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Financial Forecasting in Python

Kurs anzeigen

Anleitung zur Übung

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

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

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

# Calculate and print net profit
net_profit = ____ - ____
print("The net profit is {}.".format(____))
Code bearbeiten und ausführen