Advanced Difference-in-Differences