How to work with dates and times in Swift, part two: Calculations with dates [Updated for Swift 2]

this site teaches how to use the NSDate for swift

This has given me good ideas about the main function I will use in my app

Screen Shot 2015-12-01 at 11.56.30 PM

The idea to use a variable instead of a bunch of numbers has been a groundbreaking discovery for me.