When money moves in or out
The simple formula breaks the moment money moves. Say a client adds 200,000 during the month. The account grows by 280,000, but the manager only earned 80,000 of that. The rest was just a deposit.
There are two fixes. First, take the flow out of the gain. Second, give the flow credit only for the days it was actually invested. Money that arrives on day 10 of a 30-day month worked for 20 days, so it counts as two thirds of a full-month balance. This is the Modified Dietz method.
Place the cash flow
Move the flow through the month and compare three ways of computing the return.
All numbers are illustrative. The models are simplified for teaching: annual coupons, Black-Scholes options, simplified fee mechanics and no intra-period trading. Real systems add transaction-based returns, daily valuation, tax and corporate action processing, and reconciliation to the official TWR.