1. A non-transitory computer-readable storage medium having programming for executing a method comprising: dividing a set of time-series data into at least one time period; creating at least one set of ranged time-series data by selecting data points from each time period corresponding to a percentage of values useful in defining a threshold; applying cycles to the set of ranged time-series data; applying weights to the data for each cycle of ranged time-series data; and determining at least one threshold from the weighted time-series data; wherein the programming further executes the method such that an upper and a lower threshold is determined from the weighted time-series data; wherein the set of time-series data is divided into a plurality of time periods; and wherein a percentage of the highest values from each time period is aggregated and a percentage of the lowest values from each time period is aggregated to comprise an upper set of ranged time-series data and a lower set of ranged time-series data.