As weird as it sounds, I tried the first function now, the conversiontime, and it works. It's just from time to time I get results that are not good (1 out of 10 tries), but I think it's because of some refresh issues. I'll dig to understand. Thank you Pat