Assuming you mean the USA, and you are referring to holidays when the stock market is closed, New Year's Day, Independence Day, and Christmas Day are the only holidays that can fall on a Friday. So you can simply hard code those days. Remember though, that if those holidays fall on a Saturday...