now the thing is sum(unit*price) should only calculate unit and price when it start meeting the amount from the sale date , lets say user meet the amount target on 15th of dec than sum(unit*price ) should start after 15th not for all days.
for dec the total sum(unit*price ) is 7000 however after meeting the amount it should start after 15th dec and come to 4000