correct calculation for money flow