Esempio n. 1
0
        public static double GetPensionRate(int userId, MonthAndYear monthAndYear)
        {
            if (!Rules.IsJcpSpecific(userId))
            {
                return(0);
            }

            if (monthAndYear.IsEarlierThan(new MonthAndYear(2016, 10)))
            {
                return(0);
            }
            else if (monthAndYear.IsEarlierThan(new MonthAndYear(2018, 8)))
            {
                return(0.0525);
            }
            return(0.0625);
        }
Esempio n. 2
0
 public static bool ShouldDailyPurchaseMonthBeRemoved(MonthAndYear monthAndYear, int userId)
 {
     return(Rules.IsJcpSpecific(userId) && monthAndYear.IsEarlierThan(new MonthAndYear(2014, 9)));
 }