Use Date class to assist with date math in Project model

Fixes an intermittent failure in ProjectTest#test_age_in_days