thanks Gabor There is no way i can come up with your code. I guess if i am using loop in R, I am doing it wrong. -- View this message in context: http://r.789695.n4.nabble.com/Help-make-this-simpler-count-business-day-tp3034621p3036042.html Sent from the R help mailing list archive at Nabble.com.