DJ: added function for day calculations.  Used TDD of course.  Would you expect anything less of me. :)