Esempio n. 1
0
        public override int AccountImportance2()
        {
            int ret = 0;

            if (monthlyDifPrice.HasExpired())
            {
                // expired
                TimeSpan ts = monthlyDifPrice.ExpiredSince();
                ret = (int)((1) * ts.TotalHours);
            }
            else
            {
                // active
                TimeSpan ts = monthlyDifPrice.TimeLeft();
                ret = (int)((-1) * ts.TotalHours);
            }
            return(ret);
        }