You have to set up a sales table linked to a separate customer table. In customer table you can define a rollup field for sales date field o,f sales table, defining minimum as the option to roll up, and another rollup field for sum of sales amount. To compute the time from the first order define a column as a formula field that calculates the difference from minimum date field to today()