Difference between two dates

http://api.rubyonrails.com/classes/ActiveSupport/CoreExtensions/Numeric/Time.html
http://rubyforge.org/projects/chronic/
http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#M000572

HTH