fix date comparison bug
diff --git a/erpnext/accounts/doctype/subscriptions/subscriptions.py b/erpnext/accounts/doctype/subscriptions/subscriptions.py
index 1a07190..cf82b12 100644
--- a/erpnext/accounts/doctype/subscriptions/subscriptions.py
+++ b/erpnext/accounts/doctype/subscriptions/subscriptions.py
@@ -51,7 +51,7 @@
 			return True
 
 		end_date = getdate(end_date)
-		return nowdate() > end_date
+		return getdate(nowdate()) > getdate(end_date)
 
 	def is_past_grace_period(self):
 		current_invoice = self.get_current_invoice()
@@ -83,7 +83,7 @@
 
 	def validate_trial_period(self):
 		if self.trial_period_start and self.trial_period_end:
-			if getdate(self.trial_period_end) > getdate(self.trial_period_start):
+			if getdate(self.trial_period_end) < getdate(self.trial_period_start):
 				frappe.throw(_('Trial Period End Date Cannot be before Trial Period Start Date'))
 
 		elif self.trial_period_start or self.trial_period_end: