I am not sure if i understand you correctly. do you mean something like this?

if($giveortake=='3') { $sql .=' AND departureDate between "'$depx'" and "'$depx'" .' + INTERVAL + 3 = 3;}