1.compday(comparison no of days ) which is user defined variable which means when the user will enter no. of days which he wants say 6 so the corresponding formula should be calculated as mentioned in variable 2
2. DaysOfcomp is a second variable which will calculate following formula
=(SoldDate)-compday
eg =(20171012)-6
it gives value as 43014
if taken this variable DaysOfComp in text box it will give value as 10/6/2017
now I am getting following values in charts for the expression given below