ALL THE CASH FLOW LOGIC ver.1