Hitting time distribution in financial markets