we had been waiting vs we have been waiting

we had been waiting and we have been waiting .how different is the first one from the second .And as well when to use it either.please assist.

had been waiting - this is Past Perfect Continuous and use to show that something started in the past and continued up until another time in the past
but
have been waiting - this is Present Perfect Continuous use to show that something started in the past and has continued up until now