add convertIntervalToSeconds method