Formula For Dot Product