Distance = Speed x Time and Time = Distance/Speed.   Time = AD/TAS

Therefore GD = GS x (AD/TAS) = (AD x GS)/TAS.