public bool IsActive() { if (WasEverInTrial() == false) { return(false); } var freeTrialStartTimeAsString = registryUtility.ReadKey(keyName); if (string.IsNullOrWhiteSpace(freeTrialStartTimeAsString)) { return(false); } var freeTrialStartTime = DateTime.Parse(freeTrialStartTimeAsString); return(DateTime.Now.Subtract(freeTrialStartTime).Days <= trialDays); }