         let timeInterval:NSTimeInterval = currentDate.timeIntervalSinceDate(self.startDate!);
         
         
-        var total = Double((t?.seconds)!)
+       
         if let pD = pickerNSDate  {
             let calendar = NSCalendar.currentCalendar()
             let comp = calendar.components([.Hour, .Minute, .Second], fromDate: pD)

    }
    
    @IBAction func alarmAction(sender: AnyObject) {
        // 1
        let notification = UILocalNotification()
        // 15
        print(timerAlert)
        notification.fireDate = fixedNotificationDate(timerAlert!)
        // 3
        notification.alertBody = "Tarea pendiente de revision"
        // 4
        notification.timeZone = NSTimeZone.defaultTimeZone()
        // 5
        //notification.repeatInterval = NSCalendarUnit.Minute
        // 6
        notification.applicationIconBadgeNumber = 1
        // 7
        UIApplication.sharedApplication().scheduleLocalNotification(notification)
    }
    
    func fixedNotificationDate(dateToFix: NSDate) -> NSDate {
        
        let dateComponents: NSDateComponents = NSCalendar.currentCalendar().components([NSCalendarUnit.Day, NSCalendarUnit.Month, NSCalendarUnit.Year, NSCalendarUnit.Hour, NSCalendarUnit.Minute], fromDate: dateToFix)
        
        dateComponents.second = 0
        
        let fixedDate: NSDate = NSCalendar.currentCalendar().dateFromComponents(dateComponents)!
        

    var pickerNSDate :NSDate?
    var timerAlert : NSDate?
    var t : Task?
    var total :Double?
    
    
    override func viewDidLoad() {
