I don't think I'd use a calculated dimension like you have done. Instead, just have Customer as the dimension and use a set analysis expression to decide which sales to sum. I have created 2 new variables (vDateFrom and vDateTo) which give the range of your selected date plus the width. Then, the expression is: