refactored interval out of reoccurring formula