Rollover Index based on timestamp field

Our use case is to delete the data older than n days, For that I am planning to do day based index(daily rollover using curator rollover job). Actually I want 25th day data in 25 day index only and so on.

Also I would like know how curator calculates the age of the index?
Please explain.