Past Perfect Continuous Tense describes an action that started in the past, continued for some time, and was still happening or had recently stopped before another action took place. It emphasizes the duration of the action.
Example:
Formula: Subject + had + been + verb-ing + object