The first passage time distribution of brownian motion and its applications