How To Derive The Distance Formula