The credit-to-gdp gap is defined and calculated as the deviation or difference between the credit-to-GDP ratio and its estimated long-term trend.
The retrieved literature consistently defines the credit-to-GDP gap (often referred to as the Basel gap) as the deviation or difference between the credit-to-GDP ratio and its long-term trend.