For customer segmentation, I need to analysis how many transactions did the customer do in prior 7 days, prior 14 days etc. basis a given transaction date. Copied the input