                 let components : NSDateComponents = NSDateComponents()
                 components.month = months
             
-                expirationDate = self.gregorianCalendar?.dateByAddingComponents(components, toDate: date, options: .WrapComponents)
+                expirationDate = self.gregorianCalendar?.dateByAddingComponents(components, toDate: date, options: [])
             }
         }
         

                        
                        // If there's an expiration date that's in the future, use that date as the purchase date.
                        if let fetchedExpirationDate = expirationDate {
                            if fetchedExpirationDate.timeIntervalSinceDate(purchaseDate) > 0 {
                                purchaseDate = fetchedExpirationDate
                            }
                        }
                        
                        // Create a purchase

                
            }
            
            // Get the current user.
            self.publicDatabase.fetchRecordWithID(userRecordID, completionHandler: { (userRecord : CKRecord?, error : NSError?) -> Void in
                
