Function getCustomDataTimesAndValues