UAbilitySystemBlueprintLibrary::GetActiveGameplayEffectRemainingDuration

Returns the total duration for a given GameplayEffect, basically ExpectedEndTime - Current Time