refactored calculation of new timeRange into method