flow of cost