Matching financial periods to dates