extract getInterval into interface