Sub topic 1
Income, Spending, and Net Cash Flow
Prerequisites
This chapter assumes that you can read an online bank statement, do simple arithmetic, and calculate a percentage. Basic spreadsheet skills are helpful but not required.
The monthly cash-flow model
Cash flow describes money moving into and out of your accounts during a period. For a month, separate the movement into three parts:
- Income is money received, such as wages, benefits, interest, or refunds.
- Spending is money paid for goods, services, bills, fees, or other costs.
- Net cash flow is what remains after spending is subtracted from income.
The basic formula is:
net cash flow = income - spending
A positive result means more money came in than went out. A negative result means spending exceeded income during that month.
This measure tracks movement of money. It does not measure your total wealth. For example, buying an investment may reduce your bank balance but increase the value of an asset. Borrowing money can increase your bank balance while also creating a debt. Record those events according to the purpose of your tracking system, but do not confuse cash flow with net worth.
Choose a sign convention
A sign convention is a consistent rule for representing amounts. One simple convention is:
- Record income as a positive amount.
- Record spending as a negative amount.
For example, a paycheck is 2500.00, and a rent payment is -1200.00. Adding the signed amounts gives the change in cash:
2500.00 + (-1200.00) = 1300.00
You can also store spending as positive amounts and subtract the spending total later. Either approach works. Problems occur when the same record mixes both conventions. Write down your rule near your spreadsheet or tracking instructions.
Work through a monthly example
Suppose your monthly income is $5,000. Your spending is:
| Item | Amount |
|---|---|
| Housing | $1,200 |
| Groceries | $500 |
| Utilities and services | $250 |
| Transportation | $350 |
| Other spending | $900 |
| Total spending | $3,200 |
Your net cash flow is:
$5,000 - $3,200 = $1,800
The $1,800 is available for saving, investing, paying down debt, or other uses. It may not remain in your account if you make transfers or purchases later. The calculation only describes the selected month.
A savings rate expresses the monthly remainder as a share of income:
savings rate = net cash flow / income × 100
For this example:
$1,800 / $5,000 × 100 = 36%
Use the same definition each month. If you exclude debt payments, taxes, or transfers in one month, exclude them consistently when comparing months.
Calculate totals with Python
This example uses positive income and negative spending. Decimal is a number type suited to money calculations because it avoids many floating-point rounding problems.
from decimal import Decimal
transactions = [
("Paycheck", Decimal("2500.00")),
("Rent", Decimal("-1200.00")),
("Groceries", Decimal("-86.40")),
("Coffee", Decimal("-4.75")),
("Paycheck", Decimal("2500.00")),
("Electric bill", Decimal("-92.10")),
]
income = sum(amount for _, amount in transactions if amount > 0)
spending = -sum(amount for _, amount in transactions if amount < 0)
net = income - spending
savings_rate = (net / income * Decimal("100")) if income else Decimal("0")
print(f"Income: ${income:.2f}")
print(f"Spending: ${spending:.2f}")
print(f"Net cash flow: ${net:.2f}")
print(f"Savings rate: {savings_rate:.1f}%")The code classifies transactions by their signs, totals income and spending separately, and then calculates the net amount. In a real record, confirm that the period and accounts included match the question you want to answer.
Exercise
You receive $3,200 and spend $2,750 in one month. What are your net cash flow and savings rate?
Show answer
Net cash flow is $450. The savings rate is $450 / $3,200 × 100, or 14.1% when rounded to one decimal place.