Using Tax Law to Your Advantage