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.
This is a part of the course
“Financial Forecasting in Python”
Exercise 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.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Create and print the opex list
opex = [____, ____, ____, ____, ____]
print(____)
# Calculate and print net profit
net_profit = ____ - ____
print("The net profit is {}.".format(____))