refactored federal holiday checker function