Check out using LOD calcs in the example supplied here: FIXED Level of Detail Expressions
This shows how to calculate the number of days from first purchase date. I think you can do what you like using this example.
I hope this helps,
fyi - for others - the attached .twbx is version 10.2 so they can open with the right version.