I had to calculate the number of days between events for a work schedule. I made a little Ruby program to do it quickly and adaptably.