I have a dataframe with the following structure:
date position quantity Unit 0 2015-01-01 00:00:00 1 720 MAW
Based on the conditions