I am trying to calculate the implied volatility given an option price that is a few hours till expiry. The issue I am having is that I am not sure if it's better to use $T=\frac{1}{365}$ (case 1) or $T=\frac{1}{252}$ (case 2) for the daily increment. Then for the hour increment if an option that is 6 hours till expiry, if it's case 1, would we then use: $$T=\frac{1}{365}\frac{6}{24}$$
Or then if it's case 2:
$$T=\frac{1}{252}\frac{6}{7}$$ (If there is 7 hours of trading)