Change flow.value to flow.amount & accepts flow.date as Time or Date